From be6481bb36f42fa71d880fadb88cc5e549ef3250 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 29 Mar 2024 15:34:13 -0700 Subject: [PATCH] fix(proxy_server.py): fix checks --- litellm/proxy/_new_secret_config.yaml | 3 ++- litellm/proxy/proxy_server.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/_new_secret_config.yaml b/litellm/proxy/_new_secret_config.yaml index 963121c4a72..6159536c29e 100644 --- a/litellm/proxy/_new_secret_config.yaml +++ b/litellm/proxy/_new_secret_config.yaml @@ -7,8 +7,9 @@ model_list: general_settings: 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 + alerting: ["slack"] litellm_jwtauth: admin_jwt_scope: "litellm_proxy_admin" team_jwt_scope: "litellm_team" diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 9049a9c2f06..2c8106f2ab4 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -689,7 +689,7 @@ async def user_api_key_auth( user_id_information.append(value) if user_id_information is None or ( isinstance(user_id_information, list) - and len(user_id_information) < 2 + and len(user_id_information) < 1 ): if prisma_client is not None: user_id_information = await prisma_client.get_data(