mark anthropic keys with disabled orgs as invalid

This commit is contained in:
based
2024-03-06 22:06:54 +10:00
parent 87764096be
commit eef20d0857
+2
View File
@@ -21,6 +21,8 @@ async def check_anthropic(key: APIKey, session):
return False
text = await response.text()
if "This organization has been disabled" in text:
return
key.pozzed = any(message in text for message in pozzed_messages)
return True