Skip to content

Conversation

@cconger
Copy link
Contributor

@cconger cconger commented Jan 6, 2026

Adds a new feature
enable_request_compression that will compress using zstd requests to the codex-backend. Currently only enabled for codex-backend so requires the path to match and only for AuthMode::ChatGPT and not to azure backends.

Added a new info log line too for evaluating the compression ratio and overhead off compressing before requesting. You can enable with RUST_LOG=$RUST_LOG,codex_client::transport=info

2026-01-06T00:09:48.272113Z  INFO codex_client::transport: Compressed request body with zstd pre_compression_bytes=28914 post_compression_bytes=11485 compression_duration_ms=0

Copy link
Contributor

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

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: 50fc1fa011

ℹ️ 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".

Copy link
Collaborator

@jif-oai jif-oai left a comment

Choose a reason for hiding this comment

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

Good for now, this will get simplified once we drop chat completions from the client

pub compression: Compression,
}

impl Default for ResponsesOptions {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need this if you derive Default from Compression

@cconger cconger merged commit 21c6d40 into main Jan 7, 2026
26 checks passed
@cconger cconger deleted the cconger/request-compression-v2 branch January 7, 2026 21:21
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants