From 72d9c7ebf4c9ea3a687d3ac9afd55b04f433796b Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Mon, 23 Sep 2024 09:48:18 +0900 Subject: [PATCH 1/3] v5.0.9 --- Cargo.toml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4c29a18..8d69f71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openai-api-rs" -version = "5.0.8" +version = "5.0.9" edition = "2021" authors = ["Dongri Jin "] license = "MIT" diff --git a/README.md b/README.md index 901672a..42d296d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Check out the [docs.rs](https://docs.rs/openai-api-rs/). Cargo.toml ```toml [dependencies] -openai-api-rs = "5.0.8" +openai-api-rs = "5.0.9" ``` ## Usage From f9dc628b77c3e363e3196b88c52c703ddc2685d3 Mon Sep 17 00:00:00 2001 From: Rene Klacan Date: Wed, 25 Sep 2024 17:44:15 +0200 Subject: [PATCH 2/3] Add rustls feature This allows library to be used without adding native-tls to dependencies with: ``` openai-api-rs = { version = "^5.0", default-features = false, features = ["rustls"] } ``` Default usage without features is unaffected. --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 4c29a18..c93360f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,9 +9,15 @@ repository = "https://github.com/dongri/openai-api-rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[features] +default = ["default-tls"] +rustls = ["reqwest/rustls-tls"] +default-tls = ["reqwest/default-tls"] + [dependencies.reqwest] version = "0.12" -features = ["json", "multipart", "socks"] +default-features = false +features = ["charset", "http2", "json", "multipart", "socks"] [dependencies.tokio] version = "1" From b27c0ee55115c7bd54911e1a5273871d4e805dde Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Thu, 26 Sep 2024 06:48:59 +0900 Subject: [PATCH 3/3] v5.0.10 --- Cargo.toml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 11fabc6..e0c4cb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openai-api-rs" -version = "5.0.9" +version = "5.0.10" edition = "2021" authors = ["Dongri Jin "] license = "MIT" diff --git a/README.md b/README.md index 42d296d..42de193 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Check out the [docs.rs](https://docs.rs/openai-api-rs/). Cargo.toml ```toml [dependencies] -openai-api-rs = "5.0.9" +openai-api-rs = "5.0.10" ``` ## Usage