fix: last
This commit is contained in:
parent
ba9054352e
commit
a428366f8e
@ -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()?.text.clone();
|
||||
let response = r[r.len() - 1].text.clone();
|
||||
|
||||
println!("{:?}", response);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user