You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AzureOpenAI client has an endpoint for /images/generations but does not contain an endpoint for '/images/edits'.
This causes a 404 error when attempting to call the edits endpoint with an AzureOpenAI client.
To Reproduce
constclient=newAzureOpenAI({apiKey: process.env.AZURE_OPENAI_API_KEY,endpoint: process.env.AZURE_OPENAI_ENDPOINT,apiVersion: process.env.OPENAI_API_VERSION,});(async()=>{awaitclient.images.edit({model: 'gpt-image-1',prompt: 'Make this black and white',image: awaittoFile('image_to_edit.png'),mask: awaittoFile('mask.png'),});})().catch(console.error);
Code snippets
OS
Linux
Node version
20.17
Library version
4.96.0
The text was updated successfully, but these errors were encountered:
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
In https://github.com/openai/openai-node/blob/master/src/index.ts#L753
The AzureOpenAI client has an endpoint for /images/generations but does not contain an endpoint for '/images/edits'.
This causes a 404 error when attempting to call the edits endpoint with an AzureOpenAI client.
To Reproduce
Code snippets
OS
Linux
Node version
20.17
Library version
4.96.0
The text was updated successfully, but these errors were encountered: