mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #14774] [MERGED] fix: Store and load code interpreter generated images from a central location (DB and/or cloud storage) #62443
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/14774
Author: @rragundez
Created: 6/8/2025
Status: ✅ Merged
Merged: 6/8/2025
Merged by: @tjbck
Base:
dev← Head:images-from-db📝 Commits (2)
168997aReturn tuple consistently and strip potential left string41e28a9Use standardized procedure to save and load images📊 Changes
2 files changed (+31 additions, -43 deletions)
View changed files
📝
backend/open_webui/routers/images.py(+2 -2)📝
backend/open_webui/utils/middleware.py(+29 -41)📄 Description
This PR introduces the standardized way of saving and loading images to the images generated by code interpreter. This is the same logic that applied to images generated by a image generation model, for example here:
53764fe648/backend/open_webui/routers/images.py (L530)This will also solve 2 current issues:
Discussion on #14649
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
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.