fix
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user