mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
test(responses): drop the history docstrings from the bridge regression tests
This commit is contained in:
parent
ca91751d5b
commit
79029d89f9
2 changed files with 0 additions and 14 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue