aiguozhi123456
2c5a4e0703
fix(providers): allow retry and fallback on stream stalled timeout
...
When a stream stalls mid-response, both the retry layer and
FallbackProvider blocked recovery because content had already been
emitted via on_content_delta. This left users with truncated replies
and no automatic recovery.
For error_kind="timeout" specifically:
- _run_with_retry now suppresses delta callbacks and retries the same
model instead of returning immediately
- FallbackProvider now allows failover to a different model with
delta callbacks suppressed
Non-timeout errors retain the original "skip retry/failover after
streamed content" behavior to avoid duplicate output.
2026-06-10 18:10:44 +08:00
..
2026-06-04 19:41:32 +08:00
2026-04-16 23:44:26 +08:00
2026-05-13 12:49:17 +08:00
2026-06-04 19:41:32 +08:00
2026-06-02 22:46:47 +08:00
2026-06-10 18:09:45 +08:00
2026-04-26 20:24:42 +08:00
2026-06-10 18:09:45 +08:00
2026-05-12 11:28:20 +08:00
2026-05-23 00:33:31 +08:00
2026-06-10 18:09:45 +08:00
2026-04-21 14:02:53 +08:00
2026-05-29 15:31:03 +08:00
2026-06-04 19:41:32 +08:00
2026-05-12 11:28:20 +08:00
2026-06-06 19:49:33 +08:00
2026-05-31 15:15:37 +08:00
2026-04-09 04:45:45 +00:00
2026-04-04 10:01:45 +00:00
2026-06-05 01:09:45 +08:00
2026-06-10 18:09:45 +08:00
2026-03-25 22:07:14 +08:00
2026-06-01 23:00:53 +08:00
2026-05-16 16:33:49 +08:00
2026-05-19 15:35:19 +08:00
2026-06-01 23:00:53 +08:00
2026-06-10 14:47:20 +08:00
2026-06-06 19:49:33 +08:00
2026-05-12 11:28:20 +08:00
2026-04-28 14:54:32 +08:00
2026-06-04 10:43:09 +08:00
2026-06-04 10:43:09 +08:00
2026-06-10 18:09:45 +08:00
2026-05-21 15:21:39 +08:00
2026-06-10 14:47:20 +08:00
2026-05-29 15:31:17 +08:00
2026-06-10 18:10:44 +08:00
2026-06-10 14:47:20 +08:00
2026-05-28 22:54:46 +08:00
2026-06-06 19:49:33 +08:00
2026-06-04 19:41:32 +08:00
2026-06-02 17:06:37 +08:00
2026-05-18 22:01:33 +08:00
2026-05-16 01:14:11 +08:00
2026-05-13 12:49:17 +08:00
2026-06-09 14:50:40 +08:00
2026-06-02 22:46:47 +08:00
2026-06-02 22:46:47 +08:00
2026-06-03 15:01:29 +08:00
2026-04-18 18:51:53 +00:00
2026-06-10 04:26:06 +08:00
2026-03-24 15:12:22 +08:00
2026-04-14 15:29:59 +08:00
2026-05-13 12:49:17 +08:00
2026-06-04 19:41:32 +08:00
2026-05-15 17:19:00 +08:00
2026-06-04 19:41:32 +08:00
2026-05-15 17:19:00 +08:00
2026-05-12 11:28:20 +08:00
2026-05-12 11:28:20 +08:00
2026-06-02 22:46:47 +08:00
2026-05-29 17:26:58 +08:00