.NET Add Style and Quality Parameters Support with Execution Settings #4
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.
Motivation and Context
Why is this change required?
This change is required to introduce the use of
style
andquality
parameters in image generation, along with the usage ofOpenAITextToImageExecutionSettings
within theOpenAITextToImageService
.What problem does it solve?
The implementation enables the
OpenAITextToImageService
to handle additional parameters (style
andquality
), allowing for more customized image generation requests. It also streamlines the integration withOpenAITextToImageExecutionSettings
, making the service more flexible and configurable.What scenario does it contribute to?
This contributes to scenarios where users need to generate images with specific styles and qualities, enhancing the functionality and usability of the
OpenAITextToImageService
.If it fixes an open issue, please link to the issue here.
This implementation fixes issue #7086 and #5657
Description
This PR enhances the
OpenAITextToImageService
by:style
andquality
parameters, allowing users to generate images with specific artistic styles and quality levels.OpenAITextToImageExecutionSettings
: The service now utilizesOpenAITextToImageExecutionSettings
for handling execution parameters, improving the overall flexibility and configurability of image generation requests.style
andquality
parameters to ensure only supported values are used.style
andquality
parameters, as well as the general functionality of the service with various settings.Contribution Checklist