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 imports
Ishaan Jaffb7cbdcdf74d2
diff --git a/litellm/proxy/management_endpoints/ui_sso.py b/litellm/proxy/management_endpoints/ui_sso.pyindex e93f2e46bad..2e1be693a9e 100644--- a/litellm/proxy/management_endpoints/ui_sso.py+++ b/litellm/proxy/management_endpoints/ui_sso.py@@ -8,11 +8,10 @@ Has all /sso/* routesimport asyncioimport osimport uuid-from typing import List, Optional+from typing import TYPE_CHECKING, Any, List, Optionalfrom fastapi import APIRouter, Depends, HTTPException, Request, statusfrom fastapi.responses import RedirectResponse-from fastapi_sso.sso.base import OpenIDimport litellmfrom litellm._logging import verbose_proxy_logger@@ -33,6 +32,13 @@ from litellm.proxy.common_utils.admin_ui_utils import (from litellm.proxy.management_endpoints.internal_user_endpoints import new_userfrom litellm.secret_managers.main import str_to_bool+if TYPE_CHECKING:+ from fastapi_sso.sso.base import OpenID as _OpenID++ OpenID = _OpenID+else:+ OpenID = Any+router = APIRouter()