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_proxy_model_resolution_with_custom_names_documentation
Ishaan Jaff2d0187824c1a
diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.pyindex c11805bb92e..320ae754416 100644--- a/tests/test_litellm/test_utils.py+++ b/tests/test_litellm/test_utils.py@@ -1046,7 +1046,7 @@ class TestProxyFunctionCalling:), "Custom model names return False without proxy config context"# Case 2: Model name that can be resolved (matches pattern)- resolvable_model = "litellm_proxy/claude-3-sonnet-20240229"+ resolvable_model = "litellm_proxy/claude-3-5-sonnet-latest"result = supports_function_calling(resolvable_model)assert result is True, "Resolvable model names work with fallback logic"@@ -1057,7 +1057,7 @@ class TestProxyFunctionCalling:✅ WORKS (with current fallback logic):- litellm_proxy/gpt-4- - litellm_proxy/claude-3-sonnet-20240229+ - litellm_proxy/claude-3-5-sonnet-latest- litellm_proxy/anthropic/claude-3-haiku-20240307❌ DOESN'T WORK (requires proxy server config):