(ui) direct users to UI on swagger

This commit is contained in:
ishaan-jaff 2024-01-31 15:01:03 -08:00
parent a60368b6d5
commit c388935d42

View file

@ -114,10 +114,12 @@ import json
import logging import logging
from typing import Union from typing import Union
proxy_base_url = os.getenv("PROXY_BASE_URL", None)
ui_link = f"/ui?proxyBaseUrl={proxy_base_url}"
app = FastAPI( app = FastAPI(
docs_url="/", docs_url="/",
title="LiteLLM API", 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",
) )