The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix get_sso_settings
Ishaan Jaff5d8b28857063
diff --git a/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py b/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.pyindex 8d476d74dd7..170c3fb2cef 100644--- a/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py+++ b/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py@@ -123,14 +123,17 @@ async def get_sso_settings():"""from pydantic import TypeAdapter- # Create the settings object first- sso_settings = DefaultInternalUserParams(- **(- litellm.default_internal_user_params- if isinstance(litellm.default_internal_user_params, dict)- else {}- )+ from litellm.proxy.proxy_server import proxy_config++ # Load existing config+ config = await proxy_config.get_config()+ litellm_settings = config.get("litellm_settings", {}) or {}+ default_internal_user_params = (+ litellm_settings.get("default_internal_user_params", {}) or {})++ # Create the settings object first+ sso_settings = DefaultInternalUserParams(**(default_internal_user_params))# Get the schema for UISSOSettingsschema = TypeAdapter(DefaultInternalUserParams).json_schema(by_alias=True)