This commit is contained in:
2026-08-23 13:08:14 +02:00
parent ee1405cc1a
commit 89ae7e5fa8
4 changed files with 74 additions and 7 deletions
+7 -2
View File
@@ -247,8 +247,13 @@ func classifyProviderError(msg string) string {
strings.Contains(lower, "rate limited —"),
strings.Contains(lower, "rate limited -"):
return "AI provider rate limited — retry later"
case strings.Contains(lower, "quota exceeded"):
return "OpenAI quota exceeded — check billing"
case strings.Contains(lower, "quota exceeded"),
strings.Contains(lower, "insufficient_quota"),
strings.Contains(lower, "billing/quota empty"),
strings.Contains(lower, "prepaid api credits"),
strings.Contains(lower, "check your plan and billing"),
strings.Contains(lower, "http 429 — usually empty"):
return "API billing/quota empty — add prepaid API credits in Platform billing (not ChatGPT Plus)"
case strings.Contains(lower, "model not found"),
strings.Contains(lower, "lacks access"):
return "model not found or API key lacks access — check model name and project permissions"