mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 07:46:16 -05:00
[PR #16383] [CLOSED] Feat/custom image generation #62971
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/16383
Author: @DonInabon
Created: 8/8/2025
Status: ❌ Closed
Base:
main← Head:feat/custom-image-generation📝 Commits (7)
2895c91feat: Add support for custom image generation API8228277I have corrected the custom image generation logic. The previous implementation had aSyntaxErrorbecause the image generation logic was incorrectly placed in theget_modelsfunction. I moved the logic to the/generationsendpoint and made theget_modelsfunction return an empty list for the custom engine.e681658fix: Refactor custom image generation config variables8e17c80fix: Register custom image generation config variables8c4b571fix: Hide unnecessary fields for custom image generation engine5cba40bfix: Handle missing content-type for custom image generatione087ff9feat: Add support for custom image generation API📊 Changes
4 files changed (+226 additions, -49 deletions)
View changed files
📝
backend/open_webui/config.py(+28 -0)📝
backend/open_webui/main.py(+10 -0)📝
backend/open_webui/routers/images.py(+72 -1)📝
src/lib/components/admin/Settings/Images.svelte(+116 -48)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
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.