fix: response
This commit is contained in:
parent
c798762921
commit
cb459a51d3
@ -10,7 +10,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user