diff --git a/src/main.rs b/src/main.rs index 129d027..7afbba8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,8 +8,9 @@ async fn main() -> Result<(), Box> { 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);