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
chore: remove unused _parse_sse_events helper in test
Chesarse5de1ecd92e2
diff --git a/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_anthropic_experimental_pass_through_adapters_transformation.py b/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_anthropic_experimental_pass_through_adapters_transformation.pyindex 3d1a45c6ca1..18febf2d1b4 100644--- a/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_anthropic_experimental_pass_through_adapters_transformation.py+++ b/tests/test_litellm/llms/anthropic/experimental_pass_through/adapters/test_anthropic_experimental_pass_through_adapters_transformation.py@@ -2123,26 +2123,6 @@ class TestAnthropicStreamWrapperToolArgs:containing input_json_delta. This verifies the args are preserved."""- def _parse_sse_events(self, raw_bytes_list):- """Parse SSE bytes from the stream wrapper into event dicts."""- import json-- events = []- for raw in raw_bytes_list:- if not isinstance(raw, bytes):- continue- for line in raw.decode("utf-8").strip().split("\n"):- line = line.strip()- if line.startswith("data:"):- line = line[5:].strip()- if not line or line == "[DONE]" or line.startswith("event:"):- continue- try:- events.append(json.loads(line))- except json.JSONDecodeError:- continue- return events-def _build_chunks(self):"""Build mock OpenAI-format chunks simulating Gemini tool call response."""# Chunk 1: text content