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(anthropic_messages): configure the bridged streaming test transport through the env var only
mateo-berri39705c8edb97
diff --git a/tests/test_litellm/llms/anthropic/experimental_pass_through/responses_adapters/test_responses_adapters_handler.py b/tests/test_litellm/llms/anthropic/experimental_pass_through/responses_adapters/test_responses_adapters_handler.pyindex b350ae3dacb..3383813245a 100644--- a/tests/test_litellm/llms/anthropic/experimental_pass_through/responses_adapters/test_responses_adapters_handler.py+++ b/tests/test_litellm/llms/anthropic/experimental_pass_through/responses_adapters/test_responses_adapters_handler.py@@ -100,7 +100,7 @@ async def test_streaming_message_start_reports_the_provider_local_model(requeste@pytest.mark.asyncioasync def test_streaming_hands_the_logging_object_the_message_id_the_caller_is_streamed(- respx_mock: respx.MockRouter, monkeypatch+ respx_mock: respx.MockRouter, monkeypatch: pytest.MonkeyPatch):"""The bridge mints the ``msg_`` id itself, and it is the only request id a streaming@@ -110,7 +110,6 @@ async def test_streaming_hands_the_logging_object_the_message_id_the_caller_is_smonkeypatch.setenv("OPENAI_API_KEY", "sk-lit6825-test")monkeypatch.setenv("DISABLE_AIOHTTP_TRANSPORT", "True")- monkeypatch.setattr(litellm, "disable_aiohttp_transport", True)litellm.in_memory_llm_clients_cache.flush_cache()respx_mock.post("https://api.openai.com/v1/responses").respond(status_code=200,