add retry case for grok resource exhausted

pull/4510/head
Aiden Cline 2025-12-03 11:16:10 -06:00
parent 0eb97086fc
commit 91db82c138
1 changed files with 3 additions and 0 deletions

View File

@ -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 {}
}