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