fix(error-classifier): add insufficient balance to billing patterns

DeepSeek API returns HTTP 400 with 'Insufficient Balance' message when
account funds are depleted. This pattern was not in _BILLING_PATTERNS,
causing the error to be misclassified instead of triggering billing
exhaustion handling (e.g., fallback to alternate provider).

Suggested by teknium1 in PR review of #15586.
This commit is contained in:
阿泥豆
2026-04-28 10:18:56 +08:00
committed by Teknium
parent 7428abd54e
commit 4aa0a7c195

View File

@ -91,6 +91,7 @@ class ClassifiedError:
_BILLING_PATTERNS = [
"insufficient credits",
"insufficient_quota",
"insufficient balance",
"credit balance",
"credits have been exhausted",
"top up your credits",