mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
10 lines
No EOL
222 B
Python
10 lines
No EOL
222 B
Python
from litellm import verify_access_key
|
|
|
|
def bad_key():
|
|
key = "bad-key"
|
|
response = verify_access_key(key)
|
|
if response == False:
|
|
pass
|
|
else:
|
|
raise Exception("Bad key was not detected")
|
|
bad_key() |