mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 17:13:00 -05:00
[GH-ISSUE #23188] feat: support additional Anthropic tool_result content types #19914
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Classic298 on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23188
Check Existing Issues
Verify Feature Scope
Problem Description
The Anthropic-to-OpenAI payload conversion in utils/anthropic.py only handles text content within tool_result blocks. When a tool call returns an image (or other content types like search_result, document), the content is silently dropped — the request goes through but the model never sees the tool output.
This affects anyone using the Anthropic-compatible endpoint with tools that return multimodal results.
Desired Solution you'd like
support for images and string content in Anthropic tool_result
Alternatives Considered
No response
Additional Context
No response