Commit Graph

1 Commits

Author SHA1 Message Date
Teknium
aefffa077f feat(codex): zstd-compress Responses request bodies to the official Codex backend
The official Codex client has sent zstd request bodies to
chatgpt.com/backend-api/codex/responses under ChatGPT auth by default since
openai/codex#10102. Hermes sent raw JSON, so large-context sessions uploaded
~3.6x more bytes than the client OpenAI's edge is tuned for.

The keepalive httpx client now installs a request hook for the official Codex
base URL only: POST .../responses bodies are compressed with the stdlib
compression.zstd codec (Python 3.14, the installer default) and sent with
Content-Encoding: zstd. Custom proxies, other providers, other endpoints, and
interpreters without the codec keep sending raw JSON. Lossless transport
encoding: input tokens and prompt caching are unchanged.
2026-10-11 20:10:06 -07:00