mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-05 09:25:14 +03:00
`ChatFireworks` now reports mid-stream read timeouts as retryable `ModelTimeoutError`s while remaining catchable as `httpx.ReadTimeout`. Partial streams are not automatically replayed. --- Fireworks stream read timeouts currently bypass LangChain's model-error classification after the first chunk. Classify them as retryable `ModelTimeoutError`s while preserving `httpx.ReadTimeout` compatibility, the original cause, and request context when available. - Covers synchronous and asynchronous stream consumption. - Keeps setup retries unchanged. Does **not** replay partial streams: doing so could duplicate text or corrupt tool-call arguments. Whole-generation recovery remains the caller's responsibility. - Built-in streaming retry and fallback behavior is unchanged: `.with_retry()` does not retry streaming, and `.with_fallbacks()` only switches models before the first chunk. Applications must explicitly handle recovery after output has started. Made by [Open SWE](https://github.com/langchain-ai/open-swe) · [view thread](https://openswe.vercel.app/agents/c2ba7088-1448-5e4d-9541-ae6f25b513c7) · openai:gpt-6-astra (medium) Co-authored-by: Mason Daugherty <mdrxy@users.noreply.github.com> Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
FAQ
Looking for an integration not listed here? Check out the integrations documentation and the note in the libs/ README about third-party maintained packages.
Integration docs
For full documentation, see the primary and API reference docs for integrations.