Skip to content

Commit

Permalink
ref completion instead of clone
Browse files Browse the repository at this point in the history
  • Loading branch information
twin committed Mar 18, 2024
1 parent 042c683 commit 7568743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 7568743

Please sign in to comment.