Commit 920ff5a
fix(agents): classify 'upstream request failed' as server_error for failover
Provider errors with message 'Upstream request failed' (error type
upstream_error) were not matched by the existing 'upstream error'
or 'upstream connect error' patterns, causing them to fall through
to unclassified and preventing model fallback from triggering.
Add 'upstream request failed' to the server error message patterns
so the failover engine correctly classifies it as a transient
server error and advances to the next configured fallback model.
Fixes #95519
Co-Authored-By: Claude <[email protected]>1 parent 60612ff commit 920ff5a
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
0 commit comments