fix: last

This commit is contained in:
0xMRTT 2023-06-17 15:32:50 +02:00
parent a15619b8c7
commit 20adf75890
Signed by: 0xMRTT
GPG Key ID: 910B287304120902

View File

@ -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());
}