Skip to content

FEAT: Support image edition/remix in OpenAIImageTarget#1322

Merged
jbolor21 merged 6 commits intomicrosoft:mainfrom
fdubut:image_target
Jan 28, 2026
Merged

FEAT: Support image edition/remix in OpenAIImageTarget#1322
jbolor21 merged 6 commits intomicrosoft:mainfrom
fdubut:image_target

Conversation

@fdubut
Copy link
Copy Markdown
Contributor

@fdubut fdubut commented Jan 22, 2026

Description

This PR adds support for image edition/remix in OpenAIImageTarget, specifically being able to pass one text prompt (always required) and 1-16 image(s). It also fixes a handful of minor inconsistencies with class parameters (with different OpenAI models supporting different values).

Tests and Documentation

  • Updated unit tests to include support for image edition/remix, and the new requirements for input types.
  • Added an example of image edition/remix to the target documentation.
  • Split up the multi-modal target notebook into four notebooks (one per output modality).

Comment thread doc/_toc.yml Outdated
Comment thread doc/_toc.yml Outdated
Copy link
Copy Markdown
Contributor

@romanlutz romanlutz left a comment

Choose a reason for hiding this comment

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

This is really good! Let us know what you think about the comments 🙂

Comment thread pyrit/prompt_target/openai/openai_image_target.py Outdated
Comment thread pyrit/prompt_target/openai/openai_image_target.py Outdated
Comment thread pyrit/prompt_target/openai/openai_image_target.py Outdated
Comment thread pyrit/prompt_target/openai/openai_image_target.py
Comment thread pyrit/prompt_target/openai/openai_image_target.py Outdated
Comment thread tests/unit/target/test_image_target.py
Comment thread tests/unit/target/test_image_target.py
@jbolor21 jbolor21 merged commit 6745ec2 into microsoft:main Jan 28, 2026
20 checks passed
@fdubut fdubut deleted the image_target branch January 29, 2026 00:32
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.

4 participants