mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-10 18:39:04 -07:00
oai model list update and fix for gemini checker
This commit is contained in:
+1
-1
@@ -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", "")
|
||||
|
||||
Reference in New Issue
Block a user