Merge pull request #1728 from BerriAI/litellm_fix_ui

[Fix-UI] If user is already logged in using SSO, set allow_user_auth: True
This commit is contained in:
Ishaan Jaff 2024-01-31 15:56:16 -08:00 committed by GitHub
commit eae99ea8b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

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

View file

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