Fix example

This commit is contained in:
Dongri Jin
2022-12-12 13:22:18 +09:00
parent 4cecdee574
commit 8b04e560e2
2 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
logit_bias: None,
user: None,
};
let completion_response = client.completion(req).await?;
println!("{:?}", completion_response.choices[0].text);
let result = client.completion(req).await?;
println!("{:}", result.choices[0].text);
Ok(())
}