mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 17:02:01 -05:00
[GH-ISSUE #20244] LLM as Agent: Delayed Image Trigger for Prompt Refinement #106132
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 @Bennowan on GitHub (Dec 29, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20244
Check Existing Issues
Verify Feature Scope
Problem Description
Currently, Open WebUI triggers the image generation (ComfyUI/Automatic1111) immediately when the user sends a message. This makes it impossible for the LLM to act as a "Prompt Architect." If a user provides a simple or non-English request, the Image Engine receives a poor prompt, leading to suboptimal results. There is no "Chain of Thought" where the LLM can plan or refine the prompt before the GPU starts rendering.
Desired Solution you'd like
Implement a "Delayed Trigger" system:
LLM Refinement: The LLM first processes the user input, translates it into a detailed English prompt, and potentially selects a specific model/checkpoint.
Post-Response Trigger: Open WebUI should wait for the LLM to finish its response. Only then should it extract the final prompt (e.g., from brackets [...]) and send it to the Image Engine.
Dynamic Parameters: Allow the LLM to specify parameters like --model, --neg, or --cfg within its text output to dynamically control the image generation process.
Alternatives Considered
No response
Additional Context
No response
@owui-terminator[bot] commented on GitHub (Dec 29, 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:
#20099 feat: Need to Bypass Non-Multimodal Qwen LLM for ComfyUI Image Generation/Editing in open-webui
by freesunshine • Dec 22, 2025
#10533 Ability to edit an llm response AND have ui continue generating assistant response from that point
by thistleknot • Feb 21, 2025
💡 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 29, 2025):
You can already have the ai write the prompt and then press the little image button underneath the message which does exactly what you described.