(feat) set fast api root path

This commit is contained in:
ishaan-jaff 2024-02-17 13:03:24 -08:00
parent 975974b61b
commit 9276e205bf

View file

@ -143,6 +143,9 @@ app = FastAPI(
title="LiteLLM API",
description=f"Proxy Server to call 100+ LLMs in the OpenAI format\n\n{ui_message}",
version=version,
root_path=os.environ.get(
"SERVER_ROOT_PATH", ""
), # check if user passed root path, FastAPI defaults this value to ""
)