Commit graph

30 commits

Author SHA1 Message Date
sudipnext
d07f8f05f6 fix: update placeholder image paths to use a consistent placeholder.jpg across image generation service and tests 2026-04-22 12:50:21 +05:45
Sudip Parajuli
7f4d6acdd8
Merge branch 'main' into feat/docker-release-electron-sync 2026-04-20 20:56:20 +05:45
sudipnext
3d06644914 feat: update placeholder image references and improve asset handling
- Replaced all instances of the placeholder image path from "/static/images/placeholder.jpg" to "/static/images/replaceable_template_image.png".
- Added a new Nginx location block for serving app data with a long cache expiration.
- Enhanced the image generation service to return the new template image when generation fails.
- Updated various services and endpoints to ensure consistent handling of asset paths, including resolving backend asset URLs.
- Removed Electron-specific checks from several components to streamline API calls and improve compatibility with web deployments.
- Improved error handling and logging in the PDF export process.
- Adjusted Next.js configuration for API routing to ensure proper asset serving in Docker environments.
2026-04-18 20:56:37 +05:45
sudipnext
a3a6a1acd2 Refactor code structure and remove redundant changes in multiple sections 2026-04-16 13:33:21 +05:45
Saurav Niraula
8b63e407e1
Merge pull request #497 from hilotechinc/main
feat: add Open WebUI as image generation provider
2026-04-15 18:34:09 +05:45
sudipnext
c7860127f2 feat: add support for optional embedded Ollama and enhance database migration handling
- Updated docker-compose.yml to allow disabling embedded Ollama via environment variable.
- Refactored Dockerfile and Dockerfile.dev for improved dependency management and installation process.
- Enhanced FastAPI migration scripts to handle orphaned Alembic revisions and added new database migration logic.
- Improved error handling in background tasks and Codex authentication endpoints.
- Added support for font file uploads with better validation and extraction of font names.
- Introduced new image search functionality with support for Pexels and Pixabay APIs.
2026-04-15 15:39:35 +05:45
shiva raj badu
24177d3961
fix: ComfyUI generation issue 2026-04-11 22:02:42 +05:45
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
e72cea3655
feat: integrate ComfyUI workflow for local image generation 2025-12-17 21:04:32 +05:45
shiva raj badu
0a70f3c4e3
refactor: image generation service handle multiple response formats 2025-12-16 19:29:23 +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
fa8a8c20f1
chore: change gemini flash image generation to 2.5 flash preview 2025-09-01 12:27:45 +05:45
shiva raj badu
c5b465eb02
feat: implement image upload, retrieval & deletetion endpoints, Also implemented on Nextjs 2025-08-29 20:04:18 +05:45
sauravniraula
614948887f
feat: adds tone, verbosity and refactors tables 2025-08-29 10:52:34 +05:45
Suraj Jha
4f4783bc35
fix: use http_proxy while getting image on network 2025-08-19 15:19:57 +05:45
sauravniraula
e542fdf869
feat(fastapi): adds strict support for every schemas, proper models check, refactor 2025-08-01 00:15:03 +05:45
sauravniraula
9cb7d9f432
perf(fastapi): uses async sql engine 2025-07-29 17:19:31 +05:45
sudipnext
71ff6e6adf fix(images): return correct image path after generation (a classic SQLAlchemy "detached instance" bug by making sure to access ORM attributes while the session is still open).
-update Pixabay API to default to per_page3
2025-07-29 11:31:43 +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
sauravniraula
03b2b06ff0
feat(fastapi): adds slide assets generation, adds dict and schema processors, fix(nextjs): changes image and icon schema fields to __xxxxx__ 2025-07-17 06:38:02 +05:45
sauravniraula
ffa22b1663
feat(fastapi): adds image gen and icon search endpoints, chore(fastapi): seperates middlewares and lifespan from main.py 2025-07-16 04:36:19 +05:45
sauravniraula
ea3ff5be47
feat(fastapi): adds icons finder service to search icons using fastembed-vectorstore 2025-07-15 23:56:26 +05:45
sauravniraula
a99db53bba
feat(fastapi): adds image generation service 2025-07-15 23:13:00 +05:45