Open
Description
Confirm this is a Node library issue and not an underlying OpenAI API issue
- This is an issue with the Node library
Describe the bug
The Images
type ImageEditParams
is missing size
for gpt-image-1
model. Should align with the comment, to add extra sizes '1536x1024'
| '1024x1536'
| 'auto'
/**
* The size of the generated images. Must be one of `1024x1024`, `1536x1024`
* (landscape), `1024x1536` (portrait), or `auto` (default value) for
* `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`.
*/
size?: '256x256' | '512x512' | '1024x1024' | null;
To Reproduce
- Install latest v4.96.0 update
- Import ImageEditParams with model
gpt-image-1
Code snippets
/**
* The size of the generated images. Must be one of `1024x1024`, `1536x1024`
* (landscape), `1024x1536` (portrait), or `auto` (default value) for
* `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`.
*/
size?: '256x256' | '512x512' | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | null;
OS
macOS
Node version
v20.15.0
Library version
4.96.0