discourse-ai/spec
Sam 17f04c76d8
FEATURE: add OpenAI image generation and editing capabilities (#1293)
This commit enhances the AI image generation functionality by adding support for:

1. OpenAI's GPT-based image generation model (gpt-image-1)
2. Image editing capabilities through the OpenAI API
3. A new "Designer" persona specialized in image generation and editing
4. Two new AI tools: CreateImage and EditImage

Technical changes include:
- Renaming `ai_openai_dall_e_3_url` to `ai_openai_image_generation_url` with a migration
- Adding `ai_openai_image_edit_url` setting for the image edit API endpoint
- Refactoring image generation code to handle both DALL-E and the newer GPT models
- Supporting multipart/form-data for image editing requests

* wild guess but maybe quantization is breaking the test sometimes

this increases distance

* Update lib/personas/designer.rb

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>

* simplify and de-flake code

* fix, in chat we need enough context so we know exactly what uploads a user uploaded.

* Update lib/personas/tools/edit_image.rb

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>

* cleanup downloaded files right away

* fix implementation

---------

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2025-04-29 17:38:54 +10:00
..
configuration FEATURE: display more places where AI is used / Chat streamer (#1278) 2025-04-24 16:22:19 +10:00
db/migrate FIX: Open AI embeddings config migration & Seeded indexes cleanup & (#1092) 2025-01-27 15:24:43 -03:00
fabricators FEATURE: Add spending metrics to AI usage (#1268) 2025-04-17 15:09:48 -07:00
fixtures FIX: failing image caption spec (#1195) 2025-03-14 10:19:04 -07:00
jobs FEATURE: Add streaming to composer helper (#1256) 2025-04-14 08:18:50 -07:00
lib FEATURE: add OpenAI image generation and editing capabilities (#1293) 2025-04-29 17:38:54 +10:00
models FEATURE: add OpenAI image generation and editing capabilities (#1293) 2025-04-29 17:38:54 +10:00
reports FEATURE: New sentiment analysis visualization report (#1109) 2025-02-20 09:14:10 -08:00
requests FEATURE: Add spending metrics to AI usage (#1268) 2025-04-17 15:09:48 -07:00
serializers FEATURE: Configure persona backed features in admin panel (#1245) 2025-04-10 08:16:31 -07:00
services DEV: Use full URL for problem check message (#1165) 2025-03-05 11:31:23 +08:00
shared FEATURE: Gemini Tokenizer (#1088) 2025-01-23 18:20:35 -03:00
support FEATURE: configurable embeddings (#1049) 2025-01-21 12:23:19 -03:00
system DEV: Update sidebar grouping date labels (#1290) 2025-04-26 15:31:22 -05:00
tasks DEV: Add rake task to send topics or posts to spam scanner (#1059) 2025-01-15 11:48:57 +08:00
plugin_helper.rb FEATURE: Personas powered summaries. (#1232) 2025-04-02 12:54:47 -03:00
plugin_spec.rb FEATURE: smart date support for AI helper (#1044) 2024-12-31 08:04:25 +11:00