The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
refactor(proxy): flatten the model/info health filter expression
Yuneng Jiangb989f65b11b5
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex 02fbd1f68ec..8395ef90cde 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -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}