mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
When an MCP tool returns an image (e.g. a Home Assistant camera snapshot), the snapshot shows up in the tool call section but the model never sees it: it answers that there is no image. Only images arriving as inline data URIs were attached to the model request; MCP images are uploaded to Files first and their file URL was treated as display-only. Now an image file item with a file URL is attached to the model request as an input_image part in addition to staying in the tool call's displayed files. The existing URL-to-base64 step already resolves file URLs, so the model receives the image bytes; verified on a running instance with a mock MCP server and a mock upstream (the second upstream request carries the byte-identical JPEG). Inline data-URI images keep their existing model-only handling. Fixes #30327 |
||
|---|---|---|
| .. | ||
| data | ||
| open_webui | ||
| .dockerignore | ||
| .gitignore | ||
| dev.sh | ||
| requirements-slim.txt | ||
| requirements.txt | ||
| start.sh | ||
| start_windows.bat | ||