mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
test: improve debugging for test
This commit is contained in:
parent
4538eb848f
commit
5c6dcd6029
4 changed files with 19 additions and 3 deletions
|
@ -532,6 +532,12 @@ async def user_api_key_auth(
|
|||
api_key, str
|
||||
): # if generated token, make sure it starts with sk-.
|
||||
assert api_key.startswith("sk-") # prevent token hashes from being used
|
||||
else:
|
||||
verbose_logger.warning(
|
||||
"litellm.proxy.proxy_server.user_api_key_auth(): Warning - Key={} is not a string.".format(
|
||||
api_key
|
||||
)
|
||||
)
|
||||
|
||||
if (
|
||||
prisma_client is None and custom_db_client is None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue