feat: use last delta
This commit is contained in:
parent
2d2ab71d0d
commit
c798762921
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user