mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-31 03:19:30 +00:00
Fix example
This commit is contained in:
@ -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(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user