Skip to content

deps: expose reqwest TLS backend features#145

Open
BugenZhao wants to merge 1 commit into
openai:mainfrom
Inferact:bz/tls-features
Open

deps: expose reqwest TLS backend features#145
BugenZhao wants to merge 1 commit into
openai:mainfrom
Inferact:bz/tls-features

Conversation

@BugenZhao

Copy link
Copy Markdown

Expose features including native-tls and rustls-tls so that users can choose between different TLS backends based on their need.

rustls-tls is still used by default, so there's no user-facing breaking change.

Signed-off-by: Bugen Zhao <i@bugenzhao.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfbadbc66f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.toml
default = []
# Use the pure-Rust `rustls` TLS backend by default so we don't depend on an
# OpenSSL installation on the CI runners.
default = ["rustls-tls"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve TLS support for no-default builds

If a downstream crate already depends on openai-harmony with default-features = false, this change turns what used to be a no-op into a build of reqwest with neither TLS backend enabled unless the downstream also adds rustls-tls or native-tls. In that configuration Encoding::load still downloads the default https://openaipublic.blob.core.windows.net/... vocab through reqwest::blocking::Client, so uncached loads fail for HTTPS even though the same no-default build worked before when reqwest/rustls-tls was unconditional.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant