mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-01 01:18:34 +00:00
Moved commentary now lives in one carrier field that every guardrail and logger sees. Chat input guardrails read it as part of the turn's content, and a rewrite replaces the carrier so the original text cannot be replayed. Message-log redaction drops the carrier and the replay record bound to it. While an output guardrail runs for the request, commentary stays in content. Continued turns resend moved commentary on every route, with its phase only on routes that read phase, including turns with hosted tools, apply_patch calls or an incomplete status. A stream that fails or stops while text is held delivers that text before surfacing the error, and cancellation still propagates untouched. |
||
|---|---|---|
| .. | ||
| litellm_responses_transformation | ||
| __init__.py | ||
| test_litellm_responses_transformation_transformation.py | ||
| test_responses_bridge_provider_propagation.py | ||