mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
OpenAI's chat completions API rejects tool_reference content parts in role tool messages, so a mixed text plus reference tool result carried through the Anthropic adapter turned a previously working request into a 400 on chat-routed OpenAI and Azure deployments. Strip the reference parts there, keeping a reference-only result as an empty-text tool message so the preceding tool_call stays answered, mirroring the Responses bridge skip. |
||
|---|---|---|
| .. | ||
| guardrail_translation | ||
| __init__.py | ||
| test_openai_gpt_transformation.py | ||