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> |
||
|---|---|---|
| .. | ||
| anthropic.rs | ||
| azure_openai.rs | ||
| bedrock.rs | ||
| compatible.rs | ||
| copilot.rs | ||
| gemini.rs | ||
| glm.rs | ||
| mod.rs | ||
| ollama.rs | ||
| openai_codex.rs | ||
| openai.rs | ||
| openrouter.rs | ||
| reliable.rs | ||
| router.rs | ||
| telnyx.rs | ||
| traits.rs | ||