From cc4e049b6a4c0f12d4ed00387e78872264f012e8 Mon Sep 17 00:00:00 2001 From: based Date: Sun, 18 Feb 2024 01:51:56 +1000 Subject: [PATCH] ethical pretty sure this is just standard on all keys now, my private key that has seen only entirely legitimate and minimal use also has the message so. --- Anthropic.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Anthropic.py b/Anthropic.py index 47b8ede..6cc769c 100644 --- a/Anthropic.py +++ b/Anthropic.py @@ -1,7 +1,7 @@ import APIKey async def check_anthropic(key: APIKey, session): - pozzed_message = "ethically" + pozzed_messages = ["ethically", "copyrighted material"] headers = { 'content-type': 'application/json', 'anthropic-version': '2023-06-01', @@ -21,8 +21,7 @@ async def check_anthropic(key: APIKey, session): return False text = await response.text() - if pozzed_message in text: - key.pozzed = True + key.pozzed = any(message in text for message in pozzed_messages) return True