litellm/litellm/proxy/discovery_endpoints
Mateo Wang 48b5a5a0cc
style: unify ruff format width on 120 (#31518)
The repo linted at 120 (E501, isort) but ran ruff format at 88 via a
--line-length 88 override in the Makefile and CI, leaving the formatter
and the linter disagreeing on wrap width. Drop the override so ruff.toml's
line-length = 120 is the single source of truth and reformat the tree to
match.
2026-06-27 12:39:29 -07:00
..
__init__.py UI - Custom Server Root Path (Multiple Fixes) (#11337) 2025-06-02 17:48:03 -07:00
README.md UI - Custom Server Root Path (Multiple Fixes) (#11337) 2025-06-02 17:48:03 -07:00
ui_discovery_endpoints.py style: unify ruff format width on 120 (#31518) 2026-06-27 12:39:29 -07:00

Return the proxy base url and server root path, so UI can construct the correct url to access the proxy.

This is useful when the proxy is deployed at a different path than the root of the domain.

How to use

Action Route the /litellm path to the proxy.

Result The UI will call /litellm/.well-known/litellm-ui-config to get the proxy base url and server root path.