MAINT: Deprecating Dall-E specific parameters and aligning OpenAIImageTarget with GPT Image endpoints#1661
Open
jsong468 wants to merge 2 commits intomicrosoft:mainfrom
Open
MAINT: Deprecating Dall-E specific parameters and aligning OpenAIImageTarget with GPT Image endpoints#1661jsong468 wants to merge 2 commits intomicrosoft:mainfrom
jsong468 wants to merge 2 commits intomicrosoft:mainfrom
Conversation
jbolor21
reviewed
Apr 28, 2026
romanlutz
approved these changes
Apr 29, 2026
| ] = "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, |
Contributor
There was a problem hiding this comment.
Auto sounds like a default?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 additionalbackgroundparam 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.