Skip to content

Commit

Permalink
Merge pull request #66 from Arend-Jan/65-make-gpt-4o-default
Browse files Browse the repository at this point in the history
65 make gpt 4o default
  • Loading branch information
Arend-Jan authored May 14, 2024
2 parents fb2ff3e + 88122f2 commit 4ced92f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/cli-chat-example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand Down
2 changes: 1 addition & 1 deletion examples/cli-simple-chat-example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async fn main() -> Result<(), Box<dyn Error>> {

// 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()
};
Expand Down

0 comments on commit 4ced92f

Please sign in to comment.