Skip to content

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]

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.py
index 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, patch
import pytest
-from litellm.proxy.anthropic_endpoints.endpoints import async_data_generator_anthropic
+from litellm.proxy.common_request_processing import ProxyBaseLLMRequestProcessing
class TestAnthropicEndpoints(unittest.TestCase):
@@ -38,7 +38,7 @@ class TestAnthropicEndpoints(unittest.TestCase):
# Execute
result = [
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()