mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-10 18:39:04 -07:00
mark anthropic keys with disabled orgs as invalid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user