forked from phoenix/litellm-mirror
fix(proxy_server.py): fix checks
This commit is contained in:
parent
d8c15a5677
commit
be6481bb36
2 changed files with 3 additions and 2 deletions
|
@ -7,8 +7,9 @@ model_list:
|
||||||
|
|
||||||
general_settings:
|
general_settings:
|
||||||
master_key: sk-1234
|
master_key: sk-1234
|
||||||
proxy_batch_write_at: 5 # 👈 Frequency of batch writing logs to server (in seconds)
|
proxy_batch_write_at: 60 # 👈 Frequency of batch writing logs to server (in seconds)
|
||||||
enable_jwt_auth: True
|
enable_jwt_auth: True
|
||||||
|
alerting: ["slack"]
|
||||||
litellm_jwtauth:
|
litellm_jwtauth:
|
||||||
admin_jwt_scope: "litellm_proxy_admin"
|
admin_jwt_scope: "litellm_proxy_admin"
|
||||||
team_jwt_scope: "litellm_team"
|
team_jwt_scope: "litellm_team"
|
||||||
|
|
|
@ -689,7 +689,7 @@ async def user_api_key_auth(
|
||||||
user_id_information.append(value)
|
user_id_information.append(value)
|
||||||
if user_id_information is None or (
|
if user_id_information is None or (
|
||||||
isinstance(user_id_information, list)
|
isinstance(user_id_information, list)
|
||||||
and len(user_id_information) < 2
|
and len(user_id_information) < 1
|
||||||
):
|
):
|
||||||
if prisma_client is not None:
|
if prisma_client is not None:
|
||||||
user_id_information = await prisma_client.get_data(
|
user_id_information = await prisma_client.get_data(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue