fix: add unwrap

This commit is contained in:
0xMRTT 2023-06-17 15:36:13 +02:00
parent 7a490f98e9
commit c1268ca56a
Signed by: 0xMRTT
GPG Key ID: 910B287304120902

View File

@ -66,5 +66,5 @@ pub async fn ask(prompt: &str) -> Result<String, Box<dyn std::error::Error>> {
println!("{:?}", deltas);
return Ok(deltas.last().detail.choices[0].delta.content.clone());
return Ok(deltas.last().unwrap().detail.choices[0].delta.content.clone());
}