Skip to content

fix: apply image prompt generation to image edits#25740

Open
Sujit-1509 wants to merge 1 commit into
open-webui:devfrom
Sujit-1509:fix/image-prompt-generation-for-edits-dev
Open

fix: apply image prompt generation to image edits#25740
Sujit-1509 wants to merge 1 commit into
open-webui:devfrom
Sujit-1509:fix/image-prompt-generation-for-edits-dev

Conversation

@Sujit-1509
Copy link
Copy Markdown

Pull Request Checklist

Before submitting, make sure you've checked the following:

  • Linked Issue/Discussion: Closes issue: Image Prompt Generation is skipped on image edit (only runs on create) #25674
  • Target branch: The pull request targets the dev branch.
  • Description: A concise description of the changes is provided below.
  • Changelog: A changelog entry following Keep a Changelog format is included at the bottom.
  • Documentation: Relevant documentation has been added or updated in the Open WebUI Docs Repository.
  • Dependencies: Any new or updated dependencies are explained, tested, and documented.
  • Testing: Manual tests have been performed to verify the fix/feature works correctly and does not introduce regressions.
  • No Unchecked AI Code: This PR is either human-written or has undergone thorough human review AND manual testing.
  • Self-Review: A self-review of the code has been performed, ensuring adherence to project coding standards.
  • Architecture: Smart defaults are preferred over new settings. Local state is used for ephemeral UI logic.
  • Git Hygiene: The PR is atomic (one logical change), rebased on dev, and contains no unrelated commits.
  • Title Prefix: The PR title uses one of the following prefixes: fix

Changelog Entry

Description

  • Apply the existing image prompt generation step to the image editing path as well as the image creation path. Previously, prompt generation was only executed for image creation requests, causing image edits to bypass prompt refinement when ENABLE_IMAGE_PROMPT_GENERATION was enabled. This change moves the existing prompt generation block before the create/edit branch so both paths behave consistently.

Fixed

  • Fixed an issue where image prompts were ignored during image edits when ENABLE_IMAGE_PROMPT_GENERATION was enabled.

Contributor License Agreement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant