From b6825977c5f72592d60c72a32d586b1212e25123 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 5 Jun 2024 15:37:45 -0700 Subject: [PATCH] fix - fix redirecting after logging in --- litellm/proxy/utils.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index eed59664b1..776d700962 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -2709,13 +2709,15 @@ def decrypt_value(value: bytes, master_key: str) -> str: # LiteLLM Admin UI - Non SSO Login -html_form = """ +url_to_redirect_to = os.getenv("PROXY_BASE_URL", "") +url_to_redirect_to += "/login" +html_form = f""" LiteLLM Login -
+

LiteLLM Login

By default Username is "admin" and Password is your set LiteLLM Proxy `MASTER_KEY`

@@ -2771,8 +2773,6 @@ html_form = """
- - """