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 fixes
Ishaan Jaffde86246e147f
diff --git a/tests/test_litellm/proxy/anthropic_endpoints/test_endpoints.py b/tests/test_litellm/proxy/anthropic_endpoints/test_endpoints.pyindex 6c2d25c6752..4024983e260 100644--- a/tests/test_litellm/proxy/anthropic_endpoints/test_endpoints.py+++ b/tests/test_litellm/proxy/anthropic_endpoints/test_endpoints.py@@ -8,7 +8,7 @@ from unittest.mock import AsyncMock, MagicMock, patchimport pytest-from litellm.proxy.anthropic_endpoints.endpoints import async_data_generator_anthropic+from litellm.proxy.common_request_processing import ProxyBaseLLMRequestProcessingclass TestAnthropicEndpoints(unittest.TestCase):@@ -38,7 +38,7 @@ class TestAnthropicEndpoints(unittest.TestCase):# Executeresult = [chunk- async for chunk in async_data_generator_anthropic(+ async for chunk in ProxyBaseLLMRequestProcessing.async_sse_data_generator(response=mock_response,user_api_key_dict=mock_user_api_key_dict,request_data=mock_request_data,@@ -66,7 +66,3 @@ class TestAnthropicEndpoints(unittest.TestCase):assert (mock_safe_dumps.call_count == 2) # Called twice, once for each dict object---if __name__ == "__main__":- unittest.main()