fix: response
This commit is contained in:
@ -10,7 +10,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
|
|
||||||
let r = ai.ask("Hello, world!", None).await?;
|
let r = ai.ask("Hello, world!", None).await?;
|
||||||
|
|
||||||
let response = r.last().detail.choices[0].delta.content.clone();
|
let response = r.last().text.clone();
|
||||||
|
|
||||||
println!("{:?}", response);
|
println!("{:?}", response);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user