mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #23847] issue: Images generated by code interpeter integration are not displayed in chat #58753
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 @pro100vald on GitHub (Apr 17, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23847
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.8.12
Ollama Version (if applicable)
No response
Operating System
Windows 11 (client), Debian 12 (server)
Browser (if applicable)
Chrome 147
Confirmation
README.md.Expected Behavior
When I ask model to generate a graph using code interpreter integration via native tool calling, I expect to see the generated image contents in model's response message. Either the OpenWebUI should automatically append any generated media to model's messages, or model should be prompted about adding images into it's response.
Actual Behavior
Generated images are not getting included in model's response message (see screenshots). As it can be seen from tool response, the image was generated successfully (stdout contains
[Output Image](/api/v1/files/e571***/content)), yet the image is not shown in UI, and the model recommends to browse for it manually, instead displaying it in response. Image is accessible if entering the /api/v1 URL manually in browser; so the code interpreter correctly generated and saved it, but the image was not appended to model's chat message.Steps to Reproduce
vllm serve cyankiwi/Qwen3.5-35B-A3B-AWQ-4bit --enable-auto-tool-choice --tool-call-parser qwen3_coder --reasoning-parser qwen3 --attention-backend FLASHINFER --enable-prefix-caching --mamba-cache-mode=alignnativeoptionDue to the nature of this bug, I suspect that it is replicable with any inference engine, it shouldn't be specific to vllm. It also should replicate with any request that makes model use matplotlib.
Logs & Screenshots
Whole chat
Message from execute_code tool, showing how graph is saved and the tool generating the [Output Image] URL.
[Output Image] contains correct url that points to correct image and is accessible from client browser.
Additional Information
No response
@rutger-follo commented on GitHub (Apr 20, 2026):
We're also hitting this. Our setup: Open WebUI v0.8.12 with OpenRouter (Claude Sonnet, GPT-4o) and an external OpenAPI tool server.
After switching to Native function calling mode (needed for proper multi-step tool chaining with our external tools), the code interpreter stopped rendering matplotlib charts. The images are generated and accessible via
/api/v1/files/.../content, but the model doesn't include them in its final response.Switching back to Default mode fixes chart rendering but breaks our tool server workflow (no autonomous tool chaining).
Workaround for now: We set function calling to Native on models used for tool calling, and Default on models used for code/charting. Would be great to have both working in Native mode.
This is blocking for teams that need both external tool servers and code interpreter charts in the same conversation.