From eef20d085706e518069941501bf0d92ac924bdb5 Mon Sep 17 00:00:00 2001 From: based Date: Wed, 6 Mar 2024 22:06:54 +1000 Subject: [PATCH] mark anthropic keys with disabled orgs as invalid --- Anthropic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Anthropic.py b/Anthropic.py index 6cc769c..0073911 100644 --- a/Anthropic.py +++ b/Anthropic.py @@ -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