diff --git a/Anthropic.py b/Anthropic.py index 8c21076..aad72fc 100644 --- a/Anthropic.py +++ b/Anthropic.py @@ -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 diff --git a/OpenAI.py b/OpenAI.py index af2c4c2..0912685 100644 --- a/OpenAI.py +++ b/OpenAI.py @@ -6,9 +6,9 @@ oai_api_url = "https://api.openai.com/v1" # free tier keys are no longer considered human oai_tiers = { 'Tier 1': {'tpm': 30000, 'rpm': 500}, - 'Tier 2': {'tpm': 450000, 'rpm': 5000}, - 'Tier 3': {'tpm': 800000, 'rpm': 5000}, - 'Tier 4': {'tpm': 2000000, 'rpm': 10000}, + 'Tier 2': {'tpm': 1000000, 'rpm': 5000}, + 'Tier 3': {'tpm': 2000000, 'rpm': 5000}, + 'Tier 4': {'tpm': 4000000, 'rpm': 10000}, 'Tier 5': {'tpm': 40000000, 'rpm': 15000} # non gpt-5 -> 30000000, 10000 } @@ -105,7 +105,11 @@ standard_model_ids = { "gpt-5-nano-2025-08-07", "gpt-5", "gpt-5-2025-08-07", - "gpt-5-chat-latest" + "gpt-5-chat-latest", + "gpt-audio-2025-08-28", + "gpt-realtime-2025-08-28", + "gpt-audio", + "gpt-realtime" } running_org_verify = False