Commit 4fc6c2c
fix(core): detect context_length_exceeded in API call errors (backport B1 #17748)
Parse response body for error code so providers returning
context_length_exceeded are correctly classified as context overflow.
Upstream: anomalyco/opencode#17748 (e718db6)1 parent 1a8bc7e commit 4fc6c2c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
0 commit comments