Skip to content

Commit

Permalink
v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongri Jin committed Jan 7, 2024
1 parent c7fbe2b commit 5fedc36
Show file tree
Hide file tree
Showing 2 changed files with 5 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 = "openai-api-rs"
version = "3.0.0"
version = "3.0.1"
edition = "2021"
authors = ["Dongri Jin <[email protected]>"]
license = "MIT"
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
}],
);
```
Expand All @@ -62,7 +63,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
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,
}],
);
Expand Down

0 comments on commit 5fedc36

Please sign in to comment.