minor update

This commit is contained in:
based
2025-09-15 17:16:11 +10:00
parent 8c5572fd64
commit 68a790adc1
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ async def check_anthropic(key: APIKey, session):
error_message = json_response.get("error", {}).get("message", "")
if "This organization has been disabled" in error_message:
return
elif "Your credit balance is too low to access the Anthropic API" in error_message:
elif "Your credit balance is too low to access the Anthropic API" in error_message or 'You have reached your specified API usage limits' in error_message:
key.has_quota = False
return True