test: improve debugging for test

This commit is contained in:
Krrish Dholakia 2024-08-05 19:40:49 -07:00
parent 4538eb848f
commit 5c6dcd6029
4 changed files with 19 additions and 3 deletions

View file

@ -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