forked from phoenix/litellm-mirror
(feat) dynamic ui builds
This commit is contained in:
parent
03cb0b216d
commit
3064186ba7
14 changed files with 61 additions and 15 deletions
|
@ -5047,7 +5047,12 @@ async def login(request: Request):
|
|||
|
||||
@app.get("/get_image", include_in_schema=False)
|
||||
def get_image():
|
||||
return FileResponse(path="./logo.png")
|
||||
"""Get logo to show on admin UI"""
|
||||
from fastapi.responses import FileResponse
|
||||
|
||||
logo_path = os.getenv("UI_LOGO_PATH", "./logo.png")
|
||||
verbose_proxy_logger.debug(f"Reading logo from {logo_path}")
|
||||
return FileResponse(path=logo_path)
|
||||
|
||||
|
||||
@app.get("/sso/callback", tags=["experimental"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue