mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-23 15:48:07 +00:00
Merge pull request #24 from night-cruise/fix/fix-readme-example
Fix the bug of readme example
This commit is contained in:
@ -73,7 +73,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
model: chat_completion::GPT4.to_string(),
|
model: chat_completion::GPT4.to_string(),
|
||||||
messages: vec![chat_completion::ChatCompletionMessage {
|
messages: vec![chat_completion::ChatCompletionMessage {
|
||||||
role: chat_completion::MessageRole::user,
|
role: chat_completion::MessageRole::user,
|
||||||
content: Some(String::from("What is Bitcoin?")),
|
content: String::from("What is Bitcoin?"),
|
||||||
name: None,
|
name: None,
|
||||||
function_call: None,
|
function_call: None,
|
||||||
}],
|
}],
|
||||||
|
Reference in New Issue
Block a user