Merge pull request #2123 from BerriAI/litellm_admin_ui_apply_custom_branding

Admin UI - Use Custom Branding
This commit is contained in:
Ishaan Jaff 2024-02-21 21:14:48 -08:00 committed by GitHub
commit da5d71cfbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 187 additions and 32 deletions

View file

@ -5192,6 +5192,16 @@ async def login(request: Request):
)
@app.get("/get_image", include_in_schema=False)
def get_image():
"""Get logo to show on admin UI"""
from fastapi.responses import FileResponse
logo_path = os.getenv("UI_LOGO_PATH", "./logo.jpg")
verbose_proxy_logger.debug(f"Reading logo from {logo_path}")
return FileResponse(path=logo_path)
@app.get("/sso/callback", tags=["experimental"])
async def auth_callback(request: Request):
"""Verify login"""