Commit graph

108 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
sudipnext
d347786aaa feat: improve handling of Anthropic responses and add retry logic for content retrieval 2026-03-27 16:45:31 +05:45
sudipnext
bed2d56074 refactor: streamline image path resolution in FastAPI endpoints and PPTX presentation creator using new utility function 2026-03-08 21:08:27 +05:45
sudipnext
2d462d8df4 feat: implement database migration on startup and update dependencies for FastAPI 2026-03-08 20:05:44 +05:45
shiva raj badu
28f2b18e06
feat: completed theme & custom theme UI 2026-03-03 10:50:11 +05:45
sudipnext
34eed2413f feat: update version to 0.6.1-beta and ensure array schemas have items in JSON responses 2026-03-02 17:11:25 +05:45
sudipnext
2eff131f6b feat: enhance LLMClient with new Codex generation method and refactor tool handling
- Added a new method `_generate_codex` to LLMClient for generating responses using the Codex Responses API.
- Refactored tool handling to support structured tool calls and improved error handling during Codex interactions.
- Updated the client initialization for Codex to streamline the generation process.
- Enhanced message processing to accommodate new input formats and recursion for tool calls.
2026-02-27 18:38:52 +05:45
sudipnext
d2e3ab9d15 feat: add CodexLLMAdapter for structured LLM calls and integrate with LLMClient
- Introduced CodexLLMAdapter to handle structured and unstructured LLM calls via the Codex Responses API.
- Implemented methods for converting tool formats and building request bodies for Codex.
- Refactored LLMClient to utilize CodexLLMAdapter, enhancing tool call handling and response processing.
- Updated LLMToolCallsHandler to support Codex as a valid LLM provider.
- Enhanced schema utilities for better JSON schema handling.
2026-02-26 12:38:58 +05:45
sudipnext
5f5482cfd5 feat: enhance LLMClient with Codex integration and error handling
- Implemented a new method to create an AsyncOpenAI client specifically for Codex.
- Added functionality to convert Codex event responses into a dictionary format for easier consumption.
- Updated the streaming methods to utilize the new Codex client and handle API errors gracefully.
- Improved logging for debugging purposes during Codex interactions.
- Refactored message handling in the slide content generation function for clarity and efficiency.
2026-02-25 17:56:39 +05:45
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
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
939ebf87af
fix: issue where shadow was causing issue on powerpoint and keynote 2025-11-28 00:54:38 +05:45
sauravniraula
bcf8dabbed
feat: adds option to disable image generation for slides 2025-11-28 00:27:54 +05:45
sauravniraula
1e7950670f
fix: issue with document loader in API endpoints 2025-11-13 03:35:42 +05:45
sauravniraula
aa610d5c86
fix: adds checks for empty openai choices 2025-11-13 03:25:18 +05:45
sauravniraula
c143fdf964
fix: list new tables for creation 2025-09-16 17:49:52 +05:45
sauravniraula
b964e2d9e1
feat(fastapi): adds webhook support which lets you listen to events 2025-09-16 17:31:22 +05:45
sauravniraula
3c5ba63309
feat(fastapi): uses better json loader that parses dirty json 2025-09-12 01:28:59 +05:45
sauravniraula
4a7f23adcc
Merge branch 'development' of github.com:presenton/presenton into development 2025-09-11 22:11:35 +05:45
sauravniraula
e28825d36b
refactor: use pdfplumber for pdf to images 2025-09-11 22:08:24 +05:45
shiva raj badu
ed154269d8
feat: Svg Icons & Icon Editor for svg 2025-09-11 16:02:03 +05:45
sauravniraula
762ac9e8b1
fix(fastapi): llm client issue where tool call arguments is None while streaming (openai) 2025-09-08 00:30:16 +05:45
sauravniraula
a992f40077
feat: adds table of contents, title slide, web search options in both UI and API Endpoints 2025-09-07 22:06:22 +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
sauravniraula
b33b44de99
fix: icon finder services reinitiating in every request 2025-08-28 14:55:12 +05:45
sauravniraula
1299d37e59
fix(fastapi): improves llm client for structured output 2025-08-20 21:29:48 +05:45
sauravniraula
4156933c9b
fix(fastapi): adds missing parts check in unstructured google stream 2025-08-20 20:46:49 +05:45
sauravniraula
9ba0346935
fix(fastapi): adds checks for none parts for google structured, chore: removes fastmcp logs 2025-08-20 20:45:45 +05:45
Suraj Jha
4f4783bc35
fix: use http_proxy while getting image on network 2025-08-19 15:19:57 +05:45
sauravniraula
c63bf35c51
fix: adds support for sslmode and other params in database url 2025-08-16 20:48:42 +05:45
sauravniraula
dc6c4d1fd3
Merge branch 'main' into fix/llm-client-issues 2025-08-14 12:09:30 +05:45
sauravniraula
f518afc88b
fix(fastapi): adds check in llm client for available openai event choices 2025-08-14 12:08:55 +05:45
sauravniraula
29841bdd06
feat(fastapi): adds logic to generate speaker notes and slide note support in export 2025-08-12 16:18:57 +05:45
sauravniraula
362af45189
fix(fastapi): solves issue on PPTX export where markdown content was not correctly parsed 2025-08-12 13:10:29 +05:45
sauravniraula
65eff34078
fix: only add enable thinking false if disable thinking is set to true for custom models 2025-08-12 06:43:49 +05:45
sauravniraula
816a62a04a
fix(fastapi): solves malformed function call from google on ResponseSchema function call 2025-08-11 20:55:25 +05:45
sauravniraula
998e6be325
fix(llm_client): google structured stream and tool call issue 2025-08-11 16:33:59 +05:45
Suraj Jha
2f653d78cf
update: send template name and description and show them 2025-08-10 00:24:13 +05:45
Suraj Jha
68bb4bae3a
Merge main into pdf-pptx-layout 2025-08-09 15:36:43 +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
dc62eb72d1
feat(fastapi): adds anthropic web search, fix(fastapi): llm messages to system and user message 2025-08-09 01:36:16 +05:45
sauravniraula
5c106bd664
feat(fastapi): adds tool call support for anthropic stream and stream structured 2025-08-08 22:11:41 +05:45
sauravniraula
84fd0dee1a
feat(fastapi): adds tool calls support for anthropic generate 2025-08-08 09:06:05 +05:45