Version up to 0.1.5

This commit is contained in:
Dongri Jin
2023-03-18 06:28:49 +09:00
parent 0eedf1c0fd
commit bdedb89bc1
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "openai-api-rs" name = "openai-api-rs"
version = "0.1.4" version = "0.1.5"
edition = "2021" edition = "2021"
authors = ["Dongri Jin <dongrify@gmail.com>"] authors = ["Dongri Jin <dongrify@gmail.com>"]
license = "MIT" license = "MIT"

View File

@@ -4,7 +4,7 @@
Cargo.toml Cargo.toml
```toml ```toml
[dependencies] [dependencies]
openai-api-rs = "0.1.4" openai-api-rs = "0.1.5"
``` ```
## Example: ## Example:
@@ -22,7 +22,7 @@ use std::env;
async fn main() -> Result<(), Box<dyn std::error::Error>> { async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new(env::var("OPENAI_API_KEY").unwrap().to_string()); let client = Client::new(env::var("OPENAI_API_KEY").unwrap().to_string());
let req = ChatCompletionRequest { let req = ChatCompletionRequest {
model: chat_completion::GPT3_5_TURBO.to_string(), model: chat_completion::GPT4.to_string(),
messages: vec![chat_completion::ChatCompletionMessage { messages: vec![chat_completion::ChatCompletionMessage {
role: chat_completion::MessageRole::user, role: chat_completion::MessageRole::user,
content: String::from("NFTとは"), content: String::from("NFTとは"),