Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@SamSaffron
Copy link
Member

@SamSaffron SamSaffron commented Apr 29, 2025

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

@SamSaffron SamSaffron changed the title images FEATURE: add OpenAI image generation and editing capabilities Apr 29, 2025
@SamSaffron
Copy link
Member Author

odd, failure is a flake... having a think about how to fix

size: "auto",
api_key:,
api_url:,
n: 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there is a more descriptive name we can use for this kwarg. Not sure what n stands for here without having to read through method.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah its tricky, I map to what open ai call the param, we can remap internally, but generally we keep it at 1 anyway so maybe we can even remove for now.

Copy link
Contributor

@tgxworld tgxworld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍 Thank you for the changes.

@SamSaffron SamSaffron merged commit 17f04c7 into main Apr 29, 2025
6 checks passed
@SamSaffron SamSaffron deleted the images branch April 29, 2025 07:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants