oai model list update and fix for gemini checker

This commit is contained in:
based
2025-11-10 04:11:18 +10:00
parent ad5d1dcfa5
commit 9fa08e91f3
2 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ async def test_key_tier(key: APIKey, session):
if "exceeds the maximum number of tokens allowed" in resp_json.get("error", {}).get("message", ""):
key.tier = "Tier 3"
elif response.status == 429:
violations = resp_json.get("error", {}).get("details", [])[0].get("violations", [])
violations = resp_json.get("error", {}).get("details", [])[1].get("violations", [])
for violation in violations:
quota_metric = violation.get("quotaMetric", "")
quota_value = violation.get("quotaValue", "")