From 5fedc3665614a0a6e1379aaa153a64ea66d1fc25 Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Sun, 7 Jan 2024 16:36:46 +0900 Subject: [PATCH] v3.0.1 --- Cargo.toml | 2 +- README.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8fbdd20..a3c6d4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openai-api-rs" -version = "3.0.0" +version = "3.0.1" edition = "2021" authors = ["Dongri Jin "] license = "MIT" diff --git a/README.md b/README.md index 5c01c4e..5456872 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Check out the [docs.rs](https://docs.rs/openai-api-rs/). Cargo.toml ```toml [dependencies] -openai-api-rs = "3.0.0" +openai-api-rs = "3.0.1" ``` ## Usage @@ -38,7 +38,8 @@ let req = ChatCompletionRequest::new( GPT4.to_string(), vec![chat_completion::ChatCompletionMessage { role: chat_completion::MessageRole::user, - content: String::from("Hello OpenAI!"), + content: chat_completion::Content::Text(String::from("Hello OpenAI!")), + name: None, }], ); ``` @@ -62,7 +63,7 @@ fn main() -> Result<(), Box> { GPT4.to_string(), vec![chat_completion::ChatCompletionMessage { role: chat_completion::MessageRole::user, - content: String::from("What is Bitcoin?"), + content: chat_completion::Content::Text(String::from("What is Bitcoin?")), name: None, }], );