From cb459a51d33a270aa015ed1f8c1e1d41cbfe6d60 Mon Sep 17 00:00:00 2001 From: 0xMRTT <0xMRTT@proton.me> Date: Sat, 17 Jun 2023 17:14:44 +0200 Subject: [PATCH] fix: response --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7afbba8..1cbef76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ async fn main() -> Result<(), Box> { 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);