fix(model): treat quota errors as rate limits

This commit is contained in:
CI authored and Peter Steinberger committed 2026-01-05 21:34:08 +00:00
1 parent c627efce3e
commit d9cdf3b8ac
2 files changed
+12 -1

No files matched your search

+4 -1
View File
@@ -117,7 +117,10 @@ export function isRateLimitAssistantError(
if (!msg || msg.stopReason !== "error") return false;
const raw = (msg.errorMessage ?? "").toLowerCase();
if (!raw) return false;
return /rate[_ ]limit|too many requests|429/.test(raw);
return (
/rate[_ ]limit|too many requests|429/.test(raw) ||
raw.includes("exceeded your current quota")
);
}
function extractSupportedValues(raw: string): string[] {