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
Fix greptile review
Sameer Kankute7f3cbd41e389
diff --git a/tests/test_litellm/test_main.py b/tests/test_litellm/test_main.pyindex e3386746fba..3cbf309a14f 100644--- a/tests/test_litellm/test_main.py+++ b/tests/test_litellm/test_main.py@@ -811,12 +811,13 @@ def test_responses_api_bridge_check_global_flag_default_false():"""By default, route_all_chat_openai_to_responses is False and doesn't affect routing."""from litellm.main import responses_api_bridge_check- with patch("litellm.main._get_model_info_helper") as mock_get_model_info:- mock_get_model_info.return_value = {"max_tokens": 4096}- model_info, model = responses_api_bridge_check(- model="gpt-4o",- custom_llm_provider="openai",- )+ with patch.object(litellm, "route_all_chat_openai_to_responses", False):+ with patch("litellm.main._get_model_info_helper") as mock_get_model_info:+ mock_get_model_info.return_value = {"max_tokens": 4096}+ model_info, model = responses_api_bridge_check(+ model="gpt-4o",+ custom_llm_provider="openai",+ )assert model_info.get("mode") != "responses"