Commit graph

36 commits

Author SHA1 Message Date
sudipnext
b20199a4e3 feat: Integrate Vertex AI and Azure OpenAI support
- Added environment variables for Vertex AI and Azure OpenAI configurations in docker-compose and user configuration models.
- Updated the application logic to handle Vertex and Azure as new LLM providers, including validation and API key management.
- Enhanced the UI components to support model selection and API key input for Vertex and Azure.
- Updated relevant utility functions and constants to accommodate the new providers.
- Ensured proper error handling for configuration requirements specific to Vertex and Azure.
2026-04-30 06:03:39 +05:45
sauravniraula
11904c6cb0
refactor: cleans old unused export files from both docker and electron and uses package for export 2026-04-24 10:12:23 +05:45
sauravniraula
f76d17314a
feat: integrates llmai instead of using old llm client and tool call handlers 2026-04-23 11:42:15 +05:45
Sudip Parajuli
7f4d6acdd8
Merge branch 'main' into feat/docker-release-electron-sync 2026-04-20 20:56:20 +05:45
sudipnext
3a4aacd0dd feat: enhance user configuration handling and add error messaging for model pulling 2026-04-19 13:15:19 +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
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
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
sudipnext
d2e85a8ffa feat: implement Codex OAuth flow and integrate into application
- Added Codex authentication endpoints and logic for OAuth flow.
- Updated Docker configuration to expose port 1455 for Codex callback.
- Enhanced user configuration model to include Codex-related fields.
- Integrated Codex selection into the LLM provider UI.
- Implemented token management and refresh logic for Codex.
- Added utility functions for handling Codex OAuth tokens and state management.
2026-02-24 18:51:35 +05:45
sauravniraula
908bea18b5
feat: adds gpt image 1.5 2025-12-21 01:14:31 +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
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
5278146126
feat(nextjs): adds speaker note attribute in HtmlElement and extracts it on export 2025-08-12 16:57:57 +05:45
sauravniraula
56cd69a8b6
fix: division by zero, no paragraphs in text box model and elements with 0 width or height issue solved 2025-08-10 17:52:52 +05:45
sauravniraula
3f523f1491
refactor: removes redis service and env variables, fix(fastapi): user config bool env variables issues, parse tool fix for custom llm on tool call structured output 2025-08-09 03:03:13 +05:45
sauravniraula
c599aa15e4
feat: adds options to select between tool calls/json schema and enable disable thinking for custom models 2025-08-04 14:50:55 +05:45
sauravniraula
6b9635d165
feat(nextjs): adds model selection options for openai and google, refactor 2025-08-01 00:15:56 +05:45
sauravniraula
ac5d278a9b
feat(nextjs): adds claude support in home and settings page 2025-07-30 23:30:39 +05:45
sauravniraula
b1192e8471
fix(nextjs+fastapi): adds invert in pptx picture box model, which when set inverts the image during export 2025-07-26 20:25:29 +05:45
sauravniraula
96f12e6c82
fix(nextjs): if element is svg convert it directly to png and pass opacity values in pptx picture model 2025-07-26 01:28:00 +05:45
sauravniraula
cd8361ed2d
fix(nextjs): adds overlay to change icon color based on brightness and invert filters 2025-07-26 00:06:04 +05:45
sauravniraula
52892482e4
fix(nextjs): implements working screenshot logic, perf(nextjs): process all slides in parallel 2025-07-20 18:45:44 +05:45
sauravniraula
4b9cabbada
feat(nextjs): implements presentation export for all elements except svg, canvas and tables 2025-07-19 23:05:40 +05:45
sauravniraula
039048f139
fix(nextjs): makes box with shadow inherit color from parents to fix export issue 2025-07-19 18:09:38 +05:45
sauravniraula
c760736e51
feat(nextjs): somewhat working presentation export 2025-07-19 17:05:18 +05:45
Saurav Niraula
ac90de96de
Merge pull request #92 from presenton/feat/separate-text-and-image-models-53
Feat/separate text and image models 53
2025-07-19 12:45:41 +05:45
sauravniraula
19e69739b8
feat(fastapi): adds slide element attributes to pptx_model and improves element attributes scraping 2025-07-19 12:43:48 +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
a7516ee208
feat(nextjs): adds basic slide scraper endpoint, feat(fastapi): adds presentation export endpoint and pptx creator service 2025-07-18 08:16:35 +05:45
sauravniraula
eb25416219
feat(fastapi, nextjs): adds custom openai compartible url support 2025-07-08 13:12:01 +05:45
sauravniraula
62e56b988d
fix(fastapi, nextjs): fixes errors while using Custom Ollama URL 2025-07-06 15:29:23 +05:45
sauravniraula
2542ad6f20
feat(nextjs, fastapi): support for ollama custom url 2025-06-29 23:12:31 +05:45
sauravniraula
31073b6016
refactor!: use presenton docker codebase 2025-06-23 15:13:04 +05:45
sauravniraula
78e1006f2e
Initial: presenton 2025-05-10 19:57:24 +05:45