mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(ai): retry gateway 'Unable to forward upstream stream' errors
closes #10920
This commit is contained in:
parent
60ac3bcc3b
commit
7efebff189
2 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
- Fixed Anthropic requests failing with a 400 when an error tool result contains images; the images are now replaced with a text note ([#10794](https://github.com/earendil-works/pi/issues/10794))
|
||||
- Fixed OpenCode Go Gemini models failing with a 404 by moving OpenCode Zen and OpenCode Go to the `opencode.ai/inference` endpoints, and added Google Generative AI support to the OpenCode Go provider
|
||||
- Fixed OpenCode Go MiniMax M2.7 failing with "Model does not support this protocol" by using the Anthropic Messages API
|
||||
- Fixed automatic retry not triggering for gateway `Unable to forward upstream stream` errors ([#10920](https://github.com/earendil-works/pi/issues/10920))
|
||||
|
||||
## [1.2.0] - 2026-10-12
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,9 @@ const RETRYABLE_PROVIDER_ERROR_PATTERN = buildProviderErrorPattern([
|
|||
// "The upstream provider returned an error" (#10842).
|
||||
"provider.?returned.?(?:an.?)?error",
|
||||
"exceeded request buffer limit while retrying upstream",
|
||||
// Gateway failure relaying the upstream response stream, sent as an OpenAI
|
||||
// Responses `response.failed` event without an error code (#10920).
|
||||
"unable to forward upstream",
|
||||
|
||||
// Network, proxy, and fetch transport failures. This includes OpenAI Codex
|
||||
// raw-fetch failures such as "upstream connect", "connection refused", and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue