mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-10 18:39:04 -07:00
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.
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user