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
test_models_by_provider
Ishaan Jafferae7b13550ec5
diff --git a/tests/litellm_utils_tests/test_utils.py b/tests/litellm_utils_tests/test_utils.pyindex 889e3918b39..339d00c412e 100644--- a/tests/litellm_utils_tests/test_utils.py+++ b/tests/litellm_utils_tests/test_utils.py@@ -1371,6 +1371,9 @@ def test_models_by_provider():or v["litellm_provider"] == "bedrock_converse"):continue+ elif v.get("mode") == "search":+ # Skip search providers as they don't have traditional models+ continueelse:providers.add(v["litellm_provider"])@@ -2351,7 +2354,7 @@ def test_get_whitelisted_models():"""whitelisted_models = []for model, info in litellm.model_cost.items():- if info["litellm_provider"] == "bedrock" and info["mode"] == "chat":+ if info.get("litellm_provider") == "bedrock" and info.get("mode") == "chat":whitelisted_models.append(model)# Write to a local file