fix: last
This commit is contained in:
parent
a15619b8c7
commit
20adf75890
@ -67,5 +67,5 @@ pub async fn ask(prompt: &str) -> Result<String, Box<dyn std::error::Error>> {
|
||||
|
||||
println!("{:?}", deltas);
|
||||
|
||||
return Ok(deltas[-1].detail.choices[0].delta.content.clone());
|
||||
return Ok(deltas.last().detail.choices[0].delta.content.clone());
|
||||
}
|
Loading…
Reference in New Issue
Block a user