mirror of
https://github.com/Junyi-99/ChatGPT-API-Leakage.git
synced 2026-07-18 08:06:03 +02:00
update logging prompt
This commit is contained in:
@@ -77,10 +77,10 @@ def check_key(key, model="gpt-3.5-turbo-0125") -> int:
|
||||
logging.info(f"🔑 check ok: {key}: {result}\n")
|
||||
return result
|
||||
except AuthenticationError as e:
|
||||
logging.error(f"🔑 check ok: {key}: {e.body['code']}\n")
|
||||
logging.info(f"🔑 check ok: {key}: {e.body['code']}\n")
|
||||
return e.body["code"]
|
||||
except RateLimitError as e:
|
||||
logging.error(f"🔑 check ok: {key}: {e.body['code']}\n")
|
||||
logging.info(f"🔑 check ok: {key}: {e.body['code']}\n")
|
||||
return e.body["code"]
|
||||
except Exception as e:
|
||||
logging.error(f"🔑 check error: {key}: {e}\n")
|
||||
|
||||
Reference in New Issue
Block a user