mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
Update litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
ce4fd4e0e8
commit
2d2e7464ad
1 changed files with 3 additions and 1 deletions
|
|
@ -780,7 +780,9 @@ async def get_sso_settings():
|
|||
# Build SSO config from database values, falling back to the environment so
|
||||
# env-configured SSO still populates the UI. Stored DB values win on overlap.
|
||||
env_fallback = {
|
||||
field: os.environ[env_var] for field, env_var in _SSO_FIELD_TO_ENV_VAR.items() if os.environ.get(env_var)
|
||||
field: val
|
||||
for field, env_var in _SSO_FIELD_TO_ENV_VAR.items()
|
||||
if (val := os.environ.get(env_var))
|
||||
}
|
||||
merged_sso_settings = {**env_fallback, **decrypted_sso_settings_dict}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue