Skip to content

Preliminary Support for gpt-image-1 #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

benjamin-stern
Copy link

Adds Supported Resolutions of 1024x1536 and 1536x1024
Adds Supported Qualities of High, Medium and Low.

Breaking Change
High has been renamed to Hd reflecting the name of it's value.

Note: Addition of Quality has been added specifically src/Generated/Models/GeneratedImageSize.cs

- Changed `Quality` from `High` to `Hd` across multiple files.
- Added new quality levels: `Hd`, `High`, `Medium`, `Low`, and `Auto` in `GeneratedImageQuality.cs`.
- Introduced new sizes `W1536xH1024` and `W1024xH1536` in `GeneratedImageSize.cs`.
- Enhanced `ImageEditOptions` with a new `Quality` property and updated documentation for `Size`.
- Implemented checks for the `Quality` property in `ImageEditOptions`.
- Overall improvements for better control over image generation in the OpenAI API.
Changed the initialization of the `High` property in the
`GeneratedImageQuality` struct from `HdValue` to `HighValue`.
@benjamin-stern
Copy link
Author

benjamin-stern commented May 20, 2025

@joseharriaga, @trrwilson, @ShivangiReja please take a look and approve (or recommend changes) at you earliest convenience. It's been a number of weeks since last changes and nothing has yet been done to integrate support for new image model gpt-image-1 , this takes a step in that direction.

Added `<ManagePackageVersionsCentrally>` set to `false` for improved control over package versions. The `<TargetFrameworks>` element remains unchanged but is now positioned after the new element.
@benjamin-stern
Copy link
Author

@joseharriaga , @trrwilson , @ShivangiReja any updates? Is some alternative in the works. Seems a little disappointing to leave OpenAI Developers in the lurch waiting for a simple extension of support.

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.

1 participant