zeroclaw/src/providers
simianastronaut fd9f66cad7 fix(provider): use incremental SSE stream reading for openai-codex responses
Replace full-body buffering (`response.text().await`) in
`decode_responses_body()` with incremental `bytes_stream()` chunk
processing.  The previous approach held the HTTP connection open until
every byte had arrived; on high-latency links the long-lived connection
would frequently drop mid-read, producing the "error decoding response
body" failure on the first attempt (succeeding only after retry).

Reading chunks incrementally lets each network segment complete within
its own timeout window, eliminating the systematic first-attempt failure.

Closes #3544

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 15:22:55 -04:00
..
anthropic.rs fix(provider): skip empty text content blocks in Anthropic API requests (#3515) 2026-03-14 17:52:53 -04:00
azure_openai.rs feat(providers): add Azure OpenAI provider support (#3246) 2026-03-12 00:06:11 -04:00
bedrock.rs Addressed clippy lint issues 2026-03-10 01:48:19 -04:00
compatible.rs feat(provider): support custom API path suffix for custom: endpoints (#3447) 2026-03-13 17:54:21 -04:00
copilot.rs fix(provider): preserve reasoning_content in tool-call conversation history 2026-02-22 17:40:48 +08:00
gemini.rs fix(ci): address strict-delta clippy blockers 2026-02-24 16:03:01 +08:00
glm.rs feat(proxy): add scoped proxy configuration and docs runbooks 2026-02-18 22:10:42 +08:00
mod.rs feat(providers): add 17 providers, total now 61 — most in any AI agent (#3492) 2026-03-14 12:39:28 -04:00
ollama.rs Allow ZEROCLAW_PROVIDER_URL env variable to override api_url (#3414) 2026-03-13 18:24:37 -04:00
openai_codex.rs fix(provider): use incremental SSE stream reading for openai-codex responses 2026-03-15 15:22:55 -04:00
openai.rs fix(provider): preserve reasoning_content in tool-call conversation history 2026-02-22 17:40:48 +08:00
openrouter.rs fix(ci): resolve lint and build failures in PR checks 2026-03-10 00:36:24 -04:00
reliable.rs fix(provider): preserve reasoning_content in tool-call conversation history 2026-02-22 17:40:48 +08:00
router.rs feat: add multimodal image marker support with Ollama vision 2026-02-19 21:25:21 +08:00
telnyx.rs test(telnyx): silence unused provider binding in constructor test 2026-02-21 17:38:27 +08:00
traits.rs fix(provider): preserve reasoning_content in tool-call conversation history 2026-02-22 17:40:48 +08:00