Merge pull request #24 from night-cruise/fix/fix-readme-example

Fix the bug of readme example
This commit is contained in:
Dongri Jin
2023-08-09 08:11:01 +09:00
committed by GitHub

View File

@ -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,
}], }],