mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix forward ui requests when base url set
This commit is contained in:
parent
e207ac577e
commit
22ca6d6d30
1 changed files with 1 additions and 0 deletions
|
@ -388,6 +388,7 @@ try:
|
|||
os.rename(src, dst)
|
||||
|
||||
if server_root_path != "":
|
||||
os.environ["PROXY_BASE_URL"] = server_root_path
|
||||
|
||||
@app.middleware("http")
|
||||
async def redirect_ui_middleware(request: Request, call_next):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue