Skip to content

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

Open
jsong468 wants to merge 2 commits intomicrosoft:mainfrom
jsong468:gpt_image
Open

MAINT: Deprecating Dall-E specific parameters and aligning OpenAIImageTarget with GPT Image endpoints#1661
jsong468 wants to merge 2 commits intomicrosoft: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
] = "1024x1024",
output_format: Optional[Literal["png", "jpeg", "webp"]] = None,
quality: Optional[Literal["standard", "hd", "low", "medium", "high"]] = None,
quality: Optional[Literal["auto", "low", "medium", "high", "standard", "hd"]] = None,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Auto sounds like a default?

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