mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
docs(proxy_server.py): add link to customize swagger docs on base url
This commit is contained in:
parent
a034a550c5
commit
be0d473bb3
4 changed files with 3 additions and 2 deletions
|
@ -196,6 +196,7 @@ ui_link = f"/ui/"
|
||||||
ui_message = (
|
ui_message = (
|
||||||
f"👉 [```LiteLLM Admin Panel on /ui```]({ui_link}). Create, Edit Keys with SSO"
|
f"👉 [```LiteLLM Admin Panel on /ui```]({ui_link}). Create, Edit Keys with SSO"
|
||||||
)
|
)
|
||||||
|
custom_swagger_message = f"[**Customize Swagger Docs**](https://docs.litellm.ai/docs/proxy/enterprise#swagger-docs---custom-routes--branding)"
|
||||||
|
|
||||||
### CUSTOM BRANDING [ENTERPRISE FEATURE] ###
|
### CUSTOM BRANDING [ENTERPRISE FEATURE] ###
|
||||||
_docs_url = None if os.getenv("NO_DOCS", "False") == "True" else "/"
|
_docs_url = None if os.getenv("NO_DOCS", "False") == "True" else "/"
|
||||||
|
@ -203,10 +204,10 @@ _title = os.getenv("DOCS_TITLE", "LiteLLM API") if premium_user else "LiteLLM AP
|
||||||
_description = (
|
_description = (
|
||||||
os.getenv(
|
os.getenv(
|
||||||
"DOCS_DESCRIPTION",
|
"DOCS_DESCRIPTION",
|
||||||
f"Proxy Server to call 100+ LLMs in the OpenAI format\n\n{ui_message}",
|
f"Proxy Server to call 100+ LLMs in the OpenAI format. {custom_swagger_message}\n\n{ui_message}",
|
||||||
)
|
)
|
||||||
if premium_user
|
if premium_user
|
||||||
else f"Proxy Server to call 100+ LLMs in the OpenAI format\n\n{ui_message}"
|
else f"Proxy Server to call 100+ LLMs in the OpenAI format. {custom_swagger_message}\n\n{ui_message}"
|
||||||
)
|
)
|
||||||
|
|
||||||
app = FastAPI(
|
app = FastAPI(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue