feat: use last delta

This commit is contained in:
0xMRTT 2023-06-17 17:13:17 +02:00
parent 2d2ab71d0d
commit c798762921
Signed by: 0xMRTT
GPG Key ID: 910B287304120902

View File

@ -8,8 +8,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut ai = ThebAI::new(None);
let mut response = ai.ask("Hello, world!", None).await?;
let r = ai.ask("Hello, world!", None).await?;
let response = r.last().detail.choices[0].delta.content.clone();
println!("{:?}", response);