From 9891b12ec00248d308f0755902663606a0cfa345 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Wed, 31 Jan 2024 15:53:49 -0800 Subject: [PATCH] (fix) ui - if user logged in set allow_user_auth: True --- litellm/proxy/proxy_config.yaml | 1 - litellm/proxy/proxy_server.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_config.yaml b/litellm/proxy/proxy_config.yaml index 31ff4ef57c..874049a752 100644 --- a/litellm/proxy/proxy_config.yaml +++ b/litellm/proxy/proxy_config.yaml @@ -78,7 +78,6 @@ litellm_settings: # callbacks: custom_callbacks.proxy_handler_instance # sets litellm.callbacks = [proxy_handler_instance] general_settings: - allow_user_auth: True master_key: sk-1234 alerting: ["slack"] alerting_threshold: 10 # sends alerts if requests hang for 2 seconds diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 85350eaf37..2ddab15a85 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -3171,6 +3171,9 @@ async def auth_callback(request: Request): + "&proxyBaseUrl=" + os.getenv("PROXY_BASE_URL") ) + + # if a user has logged in they should be allowed to create keys - this ensures that it's set to True + general_settings["allow_user_auth"] = True return RedirectResponse(url=litellm_dashboard_ui)