forked from phoenix/litellm-mirror
fix forward ui requests when base url set
This commit is contained in:
parent
d08f59ae09
commit
a1c1ad60d2
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