mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[PR #9486] [MERGED] Use DB for generated images #22379
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/9486
Author: @rragundez
Created: 2/6/2025
Status: ✅ Merged
Merged: 2/12/2025
Merged by: @tjbck
Base:
dev← Head:store-images📝 Commits (8)
159578dEnable usage of the DB to store generated images8d43fdaAdd functionality in other image generation typesac33382Set get_config as the name of the function7e97e9dImprove style4974c9cRefactor upload function312f273Add extension to image filenameffb9e73Save image metadata to DB2b05c9dMove file metadata into the [meta][data] key📊 Changes
2 files changed (+62 additions, -89 deletions)
View changed files
📝
backend/open_webui/routers/files.py(+16 -20)📝
backend/open_webui/routers/images.py(+46 -69)📄 Description
At the moment images generated have several issues:
This change makes the images to be treated exactly in the same way as upload files and backed up by the same mechanism.
All the logic is pushed to the already proven 'files.py' logic. With this change all the problems mentioned above should be solved.
I tested using dall-e-3 openai model.
related to: #5109 and #8186
cc @jk-f5
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.