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