mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Message-rewriting guardrails such as Headroom return their rewrite in structured_messages and leave texts untouched. The responses guardrail translation only mapped texts back, so compression never reached the upstream request on /v1/responses while the retrieve tool still got injected. Convert the returned messages back to Responses input (plus instructions) the way the chat and Anthropic handlers already do, and keep developer messages as input_text in the chat-to-responses bridge. Resolves LIT-6494 |
||
|---|---|---|
| .. | ||
| litellm_responses_transformation | ||
| __init__.py | ||
| test_litellm_responses_transformation_transformation.py | ||
| test_responses_bridge_provider_propagation.py | ||