diff --git a/src/chat.rs b/src/chat.rs index 9c56a10..1d73fc6 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -53,7 +53,7 @@ async fn main() -> Result<(), anyhow::Error> { .build() ).await?; - let completion = resp.output.unwrap()[0].choices[0].tokens[0]; + let completion = &resp.output.unwrap()[0].choices[0].tokens[0]; println!("{}", completion); } }