mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #20129] issue: Vision capability check blocks follow-up messages after Image Generation #73700
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 @silentoplayz on GitHub (Dec 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20129
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.43
Ollama Version (if applicable)
N/A (I very recently swapped over to use llama.cpp server, but this should not matter)
Operating System
Ubuntu 24.04.3 LTS
Browser (if applicable)
Mozilla Firefox Snap for Ubuntu v146.0 (64-bit)
Confirmation
README.md.Expected Behavior
The model should handle follow-up messages gracefully even if an image was generated in a previous turn. Since "Vision" is disabled for the model, the system should either:
Actual Behavior
When attempting to send a follow-up message after an image has been generated in the chat, the application displays a toast notification error: "Model [Model Name] is not vision capable". This happens because the generated image is included in the conversation history, and the backend/frontend validation detects an image in the context while the model's vision capability is explicitly set to false, triggering the error catch.
Steps to Reproduce
OFFtheVisioncapability for the model and save changes.ONImage Generation.OFFImage Generation (or leave it, the issue is present regardless as long as the previous image is in history).Logs & Screenshots
Error triggered in
src/lib/components/chat/Chat.svelte:The
hasImagescheck scans the entire message history (viacreateMessagesList) and finds the generated image from the previous turn, causing the validation failure.Additional Information
This error was initially reported by @Classic298, but it was requested that I open this issue.
@owui-terminator[bot] commented on GitHub (Dec 22, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19825 Image Generation and Web Search trigger on every message
by bcnation • Dec 08, 2025 •
bug#20091 issue: image is regarded as binary in temp chat
by funnycups • Dec 22, 2025 •
bug#18995 issue: image generation and edition doesn’t work on temporary chats
by futureshield • Nov 06, 2025 •
bug#19864 issue:
by Haervwe • Dec 10, 2025 •
bug#19393 issue: shared chats with images - images won't show
by Classic298 • Nov 23, 2025 •
bugShow 5 more related issues
#20092 issue:
by VideoRyan • Dec 22, 2025 •
bug#19047 issue: followup questions sometimes fail to generate
by avidwriter • Nov 08, 2025 •
bug#19187 issue: Image generation menu gone.
by calebrio02 • Nov 14, 2025 •
bug#15404 issue: Image Generation Fails to Work
by lie5860 • Jun 30, 2025 •
bug#19019 issue: Image generation doesn't work with OpenRouter
by vladkvit • Nov 07, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@Classic298 commented on GitHub (Dec 30, 2025):
This needed some careful consideration
Since, we cannot just modify that function to check only on the user's messages for posted images.
What if the user deliberately sends an image to a model that is not vision capable, but does so, to have the image EDIT model edit the image? Even in this scenario we should not throw the error to tell the user the model isn't vision capable, because image generation is turned on.
So i think we should NOT show this error message if image generation is turned on.
That should do it.
@Classic298 commented on GitHub (Dec 30, 2025):
https://github.com/open-webui/open-webui/pull/20256