MCPcopy Create free account
hub / github.com/BerriAI/litellm / get_server_root_path

Function get_server_root_path

litellm/proxy/utils.py:5900–5907  ·  view source on GitHub ↗

Get the server root path from the environment variables. - If SERVER_ROOT_PATH is set, return it. - Otherwise, default to "/".

()

Source from the content-addressed store, hash-verified

5898
5899
5900def get_server_root_path() -> str:
5901 """
5902 Get the server root path from the environment variables.
5903
5904 - If SERVER_ROOT_PATH is set, return it.
5905 - Otherwise, default to "/".
5906 """
5907 return os.getenv("SERVER_ROOT_PATH", "")
5908
5909
5910def normalize_route_for_root_path(route: str) -> Optional[str]:

Calls

no outgoing calls