From c388935d42b079cf963975eb1739e83928e08ca1 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Wed, 31 Jan 2024 15:01:03 -0800 Subject: [PATCH] (ui) direct users to UI on swagger --- litellm/proxy/proxy_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 76cb85e44..60339ecb9 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -114,10 +114,12 @@ import json import logging from typing import Union +proxy_base_url = os.getenv("PROXY_BASE_URL", None) +ui_link = f"/ui?proxyBaseUrl={proxy_base_url}" app = FastAPI( docs_url="/", title="LiteLLM API", - description="Proxy Server to call 100+ LLMs in the OpenAI format\n\nšŸ‘‰ [LiteLLM Admin Panel on /ui](/ui). Create, Edit Keys with SSO", + description=f"Proxy Server to call 100+ LLMs in the OpenAI format\n\nšŸ‘‰ [LiteLLM Admin Panel on /ui]({ui_link}). Create, Edit Keys with SSO", )