forked from phoenix/litellm-mirror
Merge pull request #2123 from BerriAI/litellm_admin_ui_apply_custom_branding
Admin UI - Use Custom Branding
This commit is contained in:
commit
da5d71cfbf
33 changed files with 187 additions and 32 deletions
|
@ -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"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue