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 links + old login page deprecation message

yuneng-jiangb9fe2cb2fb84
diff --git a/litellm/proxy/common_utils/html_forms/ui_login.py b/litellm/proxy/common_utils/html_forms/ui_login.py
index 5820f2b0426..8478d41e475 100644
--- a/litellm/proxy/common_utils/html_forms/ui_login.py
+++ b/litellm/proxy/common_utils/html_forms/ui_login.py
@@ -1,10 +1,13 @@
import os
+from litellm.proxy.utils import get_custom_url
+
url_to_redirect_to = os.getenv("PROXY_BASE_URL", "")
server_root_path = os.getenv("SERVER_ROOT_PATH", "")
if server_root_path != "":
url_to_redirect_to += server_root_path
url_to_redirect_to += "/login"
+new_ui_login_url = get_custom_url("", "ui/login")
html_form = f"""
<!DOCTYPE html>
<html lang="en">
@@ -185,10 +188,32 @@ html_form = f"""
margin-top: -12px;
margin-bottom: 20px;
}}
+
+ .deprecation-banner {{
+ background-color: #fee2e2;
+ border: 1px solid #ef4444;
+ color: #991b1b;
+ padding: 14px 16px;
+ border-radius: 6px;
+ margin-bottom: 20px;
+ font-size: 14px;
+ line-height: 1.5;
+ }}
+
+ .deprecation-banner a {{
+ color: #991b1b;
+ font-weight: 600;
+ text-decoration: underline;
+ }}
</style>
</head>
<body>
<form action="{url_to_redirect_to}" method="post">
+ <div class="deprecation-banner">
+ <strong>Deprecated:</strong> Logging in with username and password on this page is deprecated.
+ Please use the <a href="{new_ui_login_url}">new login page</a> instead.
+ This page will be dedicated to signing in via SSO in the future.
+ </div>
<div class="logo-container">
<div class="logo">
🚅 LiteLLM
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 2caaec47243..bf3ad121715 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -568,7 +568,7 @@ ui_message = (
)
ui_message += "\n\n💸 [```LiteLLM Model Cost Map```](https://models.litellm.ai/)."
-ui_message += f"\n\n🔎 [```LiteLLM Model Hub```]({model_hub_link}). See available models on the proxy. [**Docs**](https://docs.litellm.ai/docs/proxy/model_hub)"
+ui_message += f"\n\n🔎 [```LiteLLM Model Hub```]({model_hub_link}). See available models on the proxy. [**Docs**](https://docs.litellm.ai/docs/proxy/ai_hub)"
custom_swagger_message = "[**Customize Swagger Docs**](https://docs.litellm.ai/docs/proxy/enterprise#swagger-docs---custom-routes--branding)"