forked from phoenix/litellm-mirror
(feat) set fast api root path
This commit is contained in:
parent
f0ed455728
commit
844df2412e
1 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,9 @@ app = FastAPI(
|
||||||
title="LiteLLM API",
|
title="LiteLLM API",
|
||||||
description=f"Proxy Server to call 100+ LLMs in the OpenAI format\n\n{ui_message}",
|
description=f"Proxy Server to call 100+ LLMs in the OpenAI format\n\n{ui_message}",
|
||||||
version=version,
|
version=version,
|
||||||
|
root_path=os.environ.get(
|
||||||
|
"SERVER_ROOT_PATH", ""
|
||||||
|
), # check if user passed root path, FastAPI defaults this value to ""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue