mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix: fix tests
This commit is contained in:
parent
d832327ccf
commit
ff373663a3
4 changed files with 24 additions and 14 deletions
|
@ -552,7 +552,6 @@ async def user_api_key_auth(
|
|||
key=api_key
|
||||
)
|
||||
if valid_token is None:
|
||||
user_obj: Optional[LiteLLM_UserTable] = None
|
||||
## check db
|
||||
verbose_proxy_logger.debug("api key: %s", api_key)
|
||||
if prisma_client is not None:
|
||||
|
@ -584,6 +583,7 @@ async def user_api_key_auth(
|
|||
|
||||
user_id_information: Optional[List] = None
|
||||
if valid_token is not None:
|
||||
user_obj: Optional[LiteLLM_UserTable] = None
|
||||
# Got Valid Token from Cache, DB
|
||||
# Run checks for
|
||||
# 1. If token can call model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue