mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #14310] [CLOSED] feat: Implement AI-Powered Design Generation via Chat #23439
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/14310
Author: @Dayoooun
Created: 5/25/2025
Status: ❌ Closed
Base:
main← Head:feat/ai-design-generation📝 Commits (1)
71fabc1feat: Implement AI-Powered Design Generation via Chat📊 Changes
5 files changed (+448 additions, -1 deletions)
View changed files
📝
README.md(+1 -1)📝
backend/open_webui/utils/chat.py(+103 -0)➕
backend/open_webui/utils/intent_processors.py(+342 -0)📝
backend/requirements.txt(+1 -0)➕
readme_update_draft.md(+1 -0)📄 Description
This feature allows you to generate and iteratively refine visual designs (like posters, logos, etc.) directly through the chat interface.
Key changes include:
Backend - Intent Detection & Processing:
ImageGenerationIntentDetectorinbackend/open_webui/utils/intent_processors.py. This function:/api/v1/images/generationsendpoint usinghttpx.is_generated_design,original_prompt, andengine_used.backend/open_webui/utils/chat.py. Design generation requests are now handled by the detector, bypassing the LLM if intent is recognized.Frontend - Image Display:
MarkdownInlineTokens.svelteusingImage.svelte) are capable of rendering Markdown-formatted image URLs () sent by the backend.Image.sveltecomponent also provides an image preview feature.Design Management (MVP Approach):
Dependencies:
httpx>=0.25.0tobackend/requirements.txtto ensure the HTTP client for the intent detector is explicitly listed.Documentation:
README.mdto highlight the new "AI-Powered Design Generation" feature, replacing the previous, more basic "Image Generation Integration" description.Testing Plan:
ImageGenerationIntentDetector, and a frontend visual review checklist to guide developer testing.This set of changes provides the core functionality for you to conversationally create and refine designs within Open WebUI.
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.