From 9276e205bf7cf9cf1f9fa9b566cfbf5f8d82094c Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Sat, 17 Feb 2024 13:03:24 -0800 Subject: [PATCH] (feat) set fast api root path --- litellm/proxy/proxy_server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 186ab05265..f95b250846 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -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 "" )