fix: add unwrap
This commit is contained in:
parent
7a490f98e9
commit
c1268ca56a
@ -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());
|
||||
}
|
Loading…
Reference in New Issue
Block a user