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(responses): drop the history docstrings from the bridge regression tests

mateo-berri79029d89f978
diff --git a/tests/test_litellm/responses/litellm_completion_transformation/test_handler.py b/tests/test_litellm/responses/litellm_completion_transformation/test_handler.py
index 15def6f1130..bb374b90f4e 100644
--- a/tests/test_litellm/responses/litellm_completion_transformation/test_handler.py
+++ b/tests/test_litellm/responses/litellm_completion_transformation/test_handler.py
@@ -203,13 +203,6 @@ _ANTHROPIC_MESSAGE_PAYLOAD: Final = {
@pytest.mark.asyncio
async def test_bridged_follow_up_turn_keeps_the_addressed_response_id_off_the_provider_body():
- """The proxy's ResponsesIDSecurity hook rewrites `previous_response_id` and keeps the
- id the client addressed under `_litellm_addressed_response_id` in the same request
- body, so internal retries re-authorize it. On a model without a native Responses
- config that body is bridged into `litellm.acompletion` kwargs, and Azure AI Claude
- answered `_litellm_addressed_response_id: Extra inputs are not permitted` (400) on
- every follow-up turn. The key is LiteLLM-internal and must never reach the provider.
- """
provider: Final = _RecordingAnthropicHandler(_ANTHROPIC_MESSAGE_PAYLOAD)
client: Final = AsyncHTTPHandler()
client.client = httpx.AsyncClient(transport=httpx.MockTransport(provider))
diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py
index ee5124ea3a6..6f86ecc8f18 100644
--- a/tests/test_litellm/test_utils.py
+++ b/tests/test_litellm/test_utils.py
@@ -4789,13 +4789,6 @@ def test_get_litellm_params_keys_never_reach_the_provider():
def test_addressed_response_id_never_reaches_the_provider():
- """The ResponsesIDSecurity hook keeps the id a client addressed under
- `_litellm_addressed_response_id` in the request body so internal retries re-authorize
- it. A bridged Responses call (no native Responses config, e.g. azure_ai Claude)
- forwards that body as `completion()` kwargs, and the provider rejects the unknown
- key: `_litellm_addressed_response_id: Extra inputs are not permitted`, a 400 on
- every follow-up turn that carries `previous_response_id`.
- """
kwargs = {
"a_real_provider_specific_param": 1,
ADDRESSED_RESPONSE_ID_FIELD: "resp_addressed-by-the-client",