You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Anthropic /v1/messages -> Responses API adapter drops required detail field on images and mislabels thinking as output_text #37175
The Responses API's ResponseInputImageParam requires detail: "low"|"high"|"auto"|"original". Without it the backend rejects the request with a large Pydantic union-validation error, which litellm's own MaskedHTTPStatusError then hides -- confirmed by reproducing the identical error directly against vLLM with the same field missing, and confirmed fixed by adding it.
Repro: send any image content block (e.g. a PDF page rendered by Claude Code's Read tool) through /v1/messages to an OpenAI-Responses-API-compatible backend.
Prior reasoning content gets folded into the message's regular visible text instead of a proper reasoning item, so on multi-turn replay the model can no longer distinguish its own prior thinking from prior final answers. The response-side translation in this same file already builds real reasoning/ResponseReasoningItem items -- this is only the request-side/history-replay path.
I think the issue for the image detail is that vLLM currently requires the parameter while openai apparently doesn't require it, see vllm-project/vllm#32685
Activity
abhishekkumar-sing commentedon Aug 17, 2026
Opened a fix for both bugs above: #37176
Summary of the fix (3 lines, one file):
input_imageblocks (direct + tool_result-embedded) now include the requireddetail: "auto"field.thinkingblocks now become a proper top-level{"type": "reasoning", ...}item instead of being folded intooutput_text.Both verified against a live self-hosted vLLM
/v1/responsesbackend before opening the PR.curious-broccoli commentedon Sep 4, 2026
I think the issue for the image
detailis that vLLM currently requires the parameter while openai apparently doesn't require it, see vllm-project/vllm#32685It's not a litellm bug as far as I know
mateo-berri commentedon Oct 15, 2026
Closing as completed. #46720 adds detail auto to image parts on this bridge, and thinking blocks replay as reasoning items since 2bca7ff