From f95eabfd540803c8448e7c68b956a945f108b21b Mon Sep 17 00:00:00 2001 From: Arend-Jan Oosterveld Date: Tue, 14 May 2024 09:40:49 +0200 Subject: [PATCH 1/2] version bump --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b7e5a60..27c5375 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chat-gpt-lib-rs" -version = "0.4.0" +version = "0.4.1" edition = "2021" description = "A Rust library for interacting with OpenAI's ChatGPT API, providing a simple interface to make API requests and handle responses." license = "Apache-2.0" From 88122f23829ad1cda5f8b43fe14d70dac4a86bbd Mon Sep 17 00:00:00 2001 From: Arend-Jan Oosterveld Date: Tue, 14 May 2024 09:51:13 +0200 Subject: [PATCH 2/2] upstepping the defaults to GPT-4o --- README.md | 2 +- examples/cli-chat-example.rs | 2 +- examples/cli-simple-chat-example.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 07fa1e8..920d810 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ let client = ChatGPTClient::new(api_key, base_url); To send a chat message, create a ChatInput structure and call the chat method: ```rust let chat_input = ChatInput { - model: Model::Gpt_4Turbo, + model: Model::Gpt_4o, messages: vec![ Message { role: Role::System, diff --git a/examples/cli-chat-example.rs b/examples/cli-chat-example.rs index 6372bd0..c41dcc2 100644 --- a/examples/cli-chat-example.rs +++ b/examples/cli-chat-example.rs @@ -100,7 +100,7 @@ async fn process_user_input( // Prepare the ChatInput object for the API call let input = ChatInput { - model: Model::Gpt_4Turbo, + model: Model::Gpt_4o, messages: messages.clone(), ..Default::default() }; diff --git a/examples/cli-simple-chat-example.rs b/examples/cli-simple-chat-example.rs index e2aee29..10a8d2b 100644 --- a/examples/cli-simple-chat-example.rs +++ b/examples/cli-simple-chat-example.rs @@ -55,7 +55,7 @@ async fn main() -> Result<(), Box> { // Define the input for the ChatGPTClient let input = ChatInput { - model: Model::Gpt_4Turbo, // Consider making this configurable + model: Model::Gpt_4o, // Consider making this configurable messages: messages.clone(), // Pass in the messages vector ..Default::default() };