Commit graph

11 commits

Author SHA1 Message Date
Christopher Quenneville
f2703ec003 feat: add Open WebUI as image generation provider
Add native support for Open WebUI's image generation API as a new
image provider option. Open WebUI exposes an OpenAI-like
/v1/images/generations endpoint but with key differences that
require special handling:

- Response is a bare JSON array instead of {"data": [...]}
- Image URLs are relative paths (e.g. /api/v1/files/.../content)
- File downloads require the same Bearer auth token

The implementation uses raw HTTP calls via aiohttp rather than the
OpenAI SDK to handle these differences. No model parameter is sent
since Open WebUI manages the image model in its own admin settings.

Backend changes:
- New OPEN_WEBUI enum value in ImageProvider
- generate_image_open_webui() method in ImageGenerationService
- Environment getters/setters for OPEN_WEBUI_IMAGE_URL and
  OPEN_WEBUI_IMAGE_API_KEY
- UserConfig model and config loading/saving pipeline updated

Frontend changes:
- New "Open WebUI" option in image provider dropdown
- Settings UI with URL and optional API key fields
- Validation, field mappings, and config persistence

Docker:
- OPEN_WEBUI_IMAGE_URL and OPEN_WEBUI_IMAGE_API_KEY added to all
  docker-compose service definitions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 12:27:45 -05:00
sauravniraula
908bea18b5
feat: adds gpt image 1.5 2025-12-21 01:14:31 +05:45
shiva raj badu
f421260bfc
feat: nano banana image generation model integration 2025-12-19 00:41:55 +05:45
shiva raj badu
ea8db1bfdd
feat: replace local image provider with ComfyUI configuration in environment variables and user settings 2025-12-18 22:42:53 +05:45
shiva raj badu
c34fb75302
feat: local image provider 2025-12-15 19:12:34 +05:45
sauravniraula
bcf8dabbed
feat: adds option to disable image generation for slides 2025-11-28 00:27:54 +05:45
sauravniraula
bb55e6a2d2
fix(fastapi): returns placeholder image is image provider is not selected 2025-07-29 11:55:32 +05:45
sauravniraula
6ae502fc9e
fix(nextjs): changes ollama and custom llm endpoints, fix(fastapi): fixes broken image search due to ImageAsset 2025-07-19 13:26:29 +05:45
sauravniraula
41a17da47d
chore(fastapi): organizes all env usage in get and set env utilities 2025-07-19 13:00:45 +05:45
sudipnext
2171dba4e5 feat: replace 'imagen' with 'gemini_flash' across image provider configurations and related services 2025-07-19 11:22:20 +05:45
sudipnext
21dca979ce feat: add image provider configuration and validation
- Updated LLMConfig interface to include IMAGE_PROVIDER and PIXABAY_API_KEY.
- Enhanced handleSaveLLMConfig to log the saving process and validate IMAGE_PROVIDER.
- Implemented image provider validation logic in hasValidLLMConfig to check for required API keys based on the selected provider.
- Modified start.js to read IMAGE_PROVIDER and PIXABAY_API_KEY from environment variables and include them in the user configuration setup.
2025-07-18 17:52:23 +05:45