open-webui: make lemonade vision smoke robust - #682
Open
lucbruni-amd wants to merge 1 commit into
Open
Conversation
The vision smoke sent a 1x1 pixel with max_tokens=256; the reasoning model spent the whole budget deliberating over the degenerate image (finish_reason=length) and returned empty content. Use a small real 8x8 PNG and raise max_tokens to 512. Applies to both Windows device variants and Linux. Refs #669, #670, #673.
lucbruni-amd
requested review from
adamlam2-amd and
harkgill-amd
as code owners
August 7, 2026 19:58
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Improves reliability of the Open WebUI vision smoke test by avoiding a degenerate 1×1 image that can consume the model’s reasoning token budget without producing visible content.
Changes:
- Replace the 1×1 base64 PNG with a small 8×8 PNG in PowerShell and Python examples.
- Increase
max_tokensfrom 256 to 512 for the vision request across Windows and Linux variants.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| }) | ||
| temperature = 0 | ||
| max_tokens = 256 | ||
| max_tokens = 512 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
openwebui-lemonade-multimodal-smokevision request sent a 1x1 pixel toQwen3.5-4B-GGUF(a reasoning model) withmax_tokens: 256. The model spends the whole budget inreasoning_contentdeliberating over the degenerate image (finish_reason: length) and never emitscontent, so the test fails with "Vision returned empty content".Fix: send a small real 8x8 PNG instead of a 1x1 pixel, and raise
max_tokensto 512 so it has room to emit content. Applied to both Windows device variants and Linux.Refs #669, #670, #673.