mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 16:31:50 +00:00
add retry case for grok resource exhausted
This commit is contained in:
parent
0eb97086fc
commit
91db82c138
1 changed files with 3 additions and 0 deletions
|
|
@ -65,6 +65,9 @@ export namespace SessionRetry {
|
|||
if (json.type === "error" && json.error?.type === "too_many_requests") {
|
||||
return "Too Many Requests"
|
||||
}
|
||||
if (json.code === "Some resource has been exhausted") {
|
||||
return "Provider is overloaded"
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue