chore(proxy): declare ui_config_path Final for the type-discipline gate

The LIT010 gate added on main requires new local bindings to be
declared Final. ui_config_path is assigned once and never rebound.
This commit is contained in:
shehryars715 2026-10-10 03:13:37 +05:00
parent 2ac43122bd
commit 7f7111a2fa

View file

@ -2373,7 +2373,7 @@ try:
in /litellm the rewritten path still contains the original one, so a plain replace
would prepend the root path again on each restart.
"""
ui_config_path = f"{server_root_path}/.well-known/litellm-ui-config"
ui_config_path: Final = f"{server_root_path}/.well-known/litellm-ui-config"
return ui_config_path.join(
part.replace("/litellm/.well-known/litellm-ui-config", ui_config_path)
for part in content.split(ui_config_path)