mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #22637] issue: Phantom File Objects from text responses (Gemini 3.1 Pro + NanoGPT + LiteLLM) #58439
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 @jndao on GitHub (Mar 13, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22637
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
NanoGPT Gemini 3.1 Pro should respond with text responses only when image generation is not selected.
Actual Behavior
OpenWebUI attempts to render an empty image with reasoning tokens (or the same message when a non-thinking endpoint is used) as the alt context. This results in a broken image with the same content in the image as the final chat message.
This continues to occur when vision, image generation AND file uploads are turned off on the model in openwebui.
Steps to Reproduce
This is occuring for all nanogpt endpoints, v1, v1thinking, v1legacy
Logs & Screenshots
Additional Information
I attempted to remove this through a pipe (markdown, img and file scrubbing) to no avail. Something else must be going on in the chat rendering engine in openwebui.
@jndao commented on GitHub (Mar 13, 2026):
Example element rendered in opnenwebui
@jndao commented on GitHub (Mar 13, 2026):
The following filter can be added to remove invalid PNG images from the stream (mostly AI generated)
@jndao commented on GitHub (Mar 13, 2026):
The data encoded in the broken images appears to be protobuf data or similar... This could be a provider problem however, openwebui should not try to render invalid base64 image data.