Skip to content

MAINT: Deprecating Dall-E specific parameters and aligning OpenAIImageTarget with GPT Image endpoints - #1661

Merged
Justin Song (jsong468) merged 5 commits into
microsoft:mainfrom
jsong468:gpt_image
Apr 30, 2026
Merged

MAINT: Deprecating Dall-E specific parameters and aligning OpenAIImageTarget with GPT Image endpoints#1661
Justin Song (jsong468) merged 5 commits into
microsoft:mainfrom
jsong468:gpt_image

Conversation

@jsong468

Copy link
Copy Markdown
Contributor

Description

Dall-E models are shut down in AzureOpenAI and are expected to shut down on OpenAI platform on 2026-05-12. This PR provides deprecation warnings when Dall-E specific params and param values (i.e., non-compatible with GPT Image endpoints) are passed in when instantiating an OpenAIImageTarget. It also makes available an additional background param that can be used for GPT Image models. Docstrings are updated accordingly.

Tests and Documentation

New unit tests added for param adjustments and warnings. Jupyter notebook was re-ran with new param options to ensure functionality.

Comment thread tests/unit/prompt_target/target/test_image_target.py Outdated
Comment thread pyrit/prompt_target/openai/openai_image_target.py
@jsong468
Justin Song (jsong468) added this pull request to the merge queue Apr 30, 2026
Merged via the queue into microsoft:main with commit fd195bf Apr 30, 2026
47 checks passed
@jsong468
Justin Song (jsong468) deleted the gpt_image branch April 30, 2026 20:55
Roman Lutz (romanlutz) pushed a commit to awksrj/PyRIT that referenced this pull request May 1, 2026
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.

3 participants