fix: response

This commit is contained in:
0xMRTT 2023-06-17 17:14:44 +02:00
parent c798762921
commit cb459a51d3
Signed by: 0xMRTT
GPG Key ID: 910B287304120902

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().detail.choices[0].delta.content.clone();
let response = r.last().text.clone();
println!("{:?}", response);