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" 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() };