mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
A streamed Responses call that litellm answers with a faked stream (web search interception, providers without native streaming, a JSON answer to a streamed request) returned the upstream response id and raw reasoning ids and blobs. The next turn could then not be routed back to the deployment that minted the reasoning, and a mixed replay reached the wrong deployment and failed with invalid_encrypted_content The faked stream now encodes its response the way the non-streamed path does, so the id carries the deployment and, with encrypted_content_affinity on, the reasoning carries its origin marker. An already-encoded response is left as is. The web search wrap now reuses the handler's replay so it passes the request metadata too When the affinity check pins a request by one item's marker, encrypted reasoning with no marker is now dropped, keeping its summary, since its origin is unknown |
||
|---|---|---|
| .. | ||
| litellm_completion_transformation | ||
| mcp | ||
| __init__.py | ||
| test_additional_tools.py | ||
| test_custom_tool_call.py | ||
| test_input_items_query.py | ||
| test_metadata_codex_callback.py | ||
| test_no_duplicate_spend_logs.py | ||
| test_null_test_fix.py | ||
| test_responses_api_bridge_flag.py | ||
| test_responses_api_lifecycle.py | ||
| test_responses_api_request_body.py | ||
| test_responses_prompt_management.py | ||
| test_responses_router_cooldown.py | ||
| test_responses_streaming_iterator.py | ||
| test_responses_supported_endpoints_passthrough.py | ||
| test_responses_utils.py | ||
| test_responses_websocket_all_providers.py | ||
| test_rust_bridge_websocket.py | ||
| test_sse_output_recovery.py | ||
| test_streaming_iterator.py | ||
| test_streaming_iterator_error_events.py | ||
| test_text_format_conversion.py | ||