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(proxy): assert non-Bedrock passthrough stream emits no content-type header

mateo-berrif86dc8f54e9b
diff --git a/tests/test_litellm/proxy/test_common_request_processing.py b/tests/test_litellm/proxy/test_common_request_processing.py
index 7b762457bc8..e567d19dac7 100644
--- a/tests/test_litellm/proxy/test_common_request_processing.py
+++ b/tests/test_litellm/proxy/test_common_request_processing.py
@@ -4564,7 +4564,7 @@ class TestAllmPassthroughStreamingProviderGate:
assert isinstance(result, StreamingResponse)
assert result.media_type is None
- assert result.headers.get("content-type") != "application/vnd.amazon.eventstream"
+ assert "content-type" not in result.headers
class TestResponseCostHeaderForTypedDictResponses: