Skip to content

feat(provider/openai): implement responses image generation #6670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Pranav-Wadhwa
Copy link

@Pranav-Wadhwa Pranav-Wadhwa commented Jun 8, 2025

Background

OpenAI responses API recently added support for an image generation tool. It'd be convenient to access this from generateText through OpenAI responses.

Summary

Added an image_generation tool call similar to the web_search_preview.

Verification

I verified through an example that you can generate an image successfully and it shows up in the files in the generateText response.

Tasks

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)

Address #6425

@Pranav-Wadhwa Pranav-Wadhwa force-pushed the pranav-wadhwa/openai-responses-image branch from 0855313 to bac0426 Compare June 16, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant