mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
refactor(proxy): flatten the model/info health filter expression
This commit is contained in:
parent
2d1e3a1c80
commit
b989f65b11
1 changed files with 1 additions and 3 deletions
|
|
@ -14219,9 +14219,7 @@ async def model_info_v1(
|
|||
general_settings=general_settings,
|
||||
llm_router=llm_router,
|
||||
)
|
||||
visible_models: Final = (
|
||||
[model for model in all_models if model.get("model_name") not in hidden_names] if hidden_names else all_models
|
||||
)
|
||||
visible_models: Final = [model for model in all_models if model.get("model_name") not in hidden_names]
|
||||
|
||||
verbose_proxy_logger.debug("all_models: %s", visible_models)
|
||||
return {"data": visible_models}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue