mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/19822
Author: @eml-henn
Created: 12/8/2025
Status: ❌ Closed
Base:
dev← Head:fix-image-edit-with-reference📝 Commits (2)
aa806d1Fix #19750 : Handle reference images correctly in image edite4f7b3bFix #19750 : Handle reference images correctly in image edit📊 Changes
1 file changed (+14 additions, -8 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+14 -8)📄 Description
Changelog Entry
Description
Fixes a bug where uploading a reference image after generating an image would ignore the previously generated image and only use the reference image.
Discussion here: https://github.com/open-webui/open-webui/discussions/19754
Fixed
Modified
get_last_images()to:Additional Information
0c18cd67d5we always pass an array, even with a single image). Fixing this in images.py uncovered a further error with dall-e-2 only supporting png in RGBA format, which is not how the assistant returns images (An error occurred while generating the image: [ERROR: Invalid input image - format must be in ['RGBA', 'LA', 'L'], got RGB.]) . Will document this further, up for discussion best way to fix this.the current image creation / edit flow is as follows:
A) user1 w. no image → image creation method → assistant1 w. image
B) user1 w. image → image editing method → assistant1 w. image
C) user1 w. no image → assistant 1 w. image → user2 w. no image → image edit based on assistant 1
D) user1 w. image → assistant 1 w. image → user2 w. no image → image edit base on assistant 1 only
E) and F) user 1 w. or w.no image → assistant1 w. image → user2 w. image → image edit based on assistant 1 and user 2.
G) user1 w. image -> assistant1 w. no image (regular query) -> user2 w. no image with image request -> image edit based on user1
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.