fix: add error

This commit is contained in:
0xMRTT 2023-06-17 17:15:12 +02:00
parent cb459a51d3
commit ba9054352e
Signed by: 0xMRTT
GPG Key ID: 910B287304120902
1 changed files with 1 additions and 1 deletions

View File

@ -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.last()?.text.clone();
println!("{:?}", response);