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: UI 404 error when SERVER_ROOT_PATH is set (#19467)
Harshit Jain73d49f8d6399
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex 8ae07121177..b3111f482cc 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -545,7 +545,7 @@ except ImportError:enterprise_proxy_config = None###################-server_root_path = os.getenv("SERVER_ROOT_PATH", "")+server_root_path = get_server_root_path()_license_check = LicenseCheck()premium_user: bool = _license_check.is_premium()premium_user_data: Optional["EnterpriseLicenseData"] = (@@ -823,7 +823,6 @@ app = FastAPI(title=_title,description=_description,version=version,- root_path=server_root_path, # check if user passed root path, FastAPI defaults this value to ""lifespan=proxy_startup_event, # type: ignore[reportGeneralTypeIssues])