mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[GH-ISSUE #13834] issue: task models error when base64 text content is present (images) #17046
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 @almajo on GitHub (May 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13834
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.9
Ollama Version (if applicable)
No response
Operating System
linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Task models like title and tag generation should work without images or other base64 content for quick and cheap responses.
Actual Behavior
As embedded images are simply text, they use a lot of tokens and thereby surpass context lengths which leads to chats being called "New Chat".
Steps to Reproduce
Logs & Screenshots
Additional Information
I already added a fix in the latest release for some use cases but forgot about the embedded image case. This should be an easy add-on in the implementation.
@tjbck commented on GitHub (May 16, 2025):
Should be addressed by
528a2cf96a, testing wanted here!@almajo commented on GitHub (May 19, 2025):
Hey, as far as I see, this doesn't fix the issue.
The use case I described is especially important for Functions which create images and show them to the user via markdown. Hereby, they simply emit the picture as a string, hence the content would be as string in
message['content'].A fix would be
The base64 pattern should be verified