presenton/servers/fastapi/services
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
..
__init__.py fix: icon finder services reinitiating in every request 2025-08-28 14:55:12 +05:45
codex_llm.py feat: add CodexLLMAdapter for structured LLM calls and integrate with LLMClient 2026-02-26 12:38:58 +05:45
concurrent_service.py feat(fastapi): adds webhook support which lets you listen to events 2025-09-16 17:31:22 +05:45
database.py feat: completed theme & custom theme UI 2026-03-03 10:50:11 +05:45
docling_service.py fix: nextjs build issues and docling support for Powerpoint and Word 2025-08-05 23:19:59 +05:45
documents_loader.py fix: issue with document loader in API endpoints 2025-11-13 03:35:42 +05:45
html_to_text_runs_service.py fix(fastapi): solves issue on PPTX export where markdown content was not correctly parsed 2025-08-12 13:10:29 +05:45
icon_finder_service.py feat: Svg Icons & Icon Editor for svg 2025-09-11 16:02:03 +05:45
image_generation_service.py feat: add Open WebUI as image generation provider 2026-04-05 12:27:45 -05:00
llm_client.py feat: improve handling of Anthropic responses and add retry logic for content retrieval 2026-03-27 16:45:31 +05:45
llm_tool_calls_handler.py feat: add CodexLLMAdapter for structured LLM calls and integrate with LLMClient 2026-02-26 12:38:58 +05:45
pptx_presentation_creator.py refactor: streamline image path resolution in FastAPI endpoints and PPTX presentation creator using new utility function 2026-03-08 21:08:27 +05:45
score_based_chunker.py refactor: removes nltk from score based chunker 2025-08-05 23:54:18 +05:45
temp_file_service.py feat: adds tone, verbosity and refactors tables 2025-08-29 10:52:34 +05:45
webhook_service.py feat(fastapi): adds webhook support which lets you listen to events 2025-09-16 17:31:22 +05:45