Skip to content

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]

fix forward ui requests when base url set

Ishaan Jaffa1c1ad60d241
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index e686bfa1912..11acc6ff40e 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -388,6 +388,7 @@ try:
os.rename(src, dst)
if server_root_path != "":
+ os.environ["PROXY_BASE_URL"] = server_root_path
@app.middleware("http")
async def redirect_ui_middleware(request: Request, call_next):