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.
This commit is contained in:
based
2024-02-18 01:51:56 +10:00
parent fddb8a4bcc
commit cc4e049b6a
+2 -3
View File
@@ -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