mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
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:
parent
2ac43122bd
commit
7f7111a2fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue