mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-09-02 07:09:36 +00:00
Fix example
This commit is contained in:
@ -38,8 +38,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
logit_bias: None,
|
logit_bias: None,
|
||||||
user: None,
|
user: None,
|
||||||
};
|
};
|
||||||
let completion_response = client.completion(req).await?;
|
let result = client.completion(req).await?;
|
||||||
println!("{:?}", completion_response.choices[0].text);
|
println!("{:?}", result.choices[0].text);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
logit_bias: None,
|
logit_bias: None,
|
||||||
user: None,
|
user: None,
|
||||||
};
|
};
|
||||||
let completion_response = client.completion(req).await?;
|
let result = client.completion(req).await?;
|
||||||
println!("{:?}", completion_response.choices[0].text);
|
println!("{:}", result.choices[0].text);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user