Skip to content

Conversation

@luisjones
Copy link
Contributor

@luisjones luisjones commented Aug 11, 2025

When using an Azure OpenAI hosted instance of gpt-image-1, using image.Edit is currently returning a 404 as it isn't accounting for the deployment name. This PR resolves this by adding that endpoint to the list of multiform/mime endpoints.

Before:
image
image

After:
image

Resolves #476

@luisjones luisjones marked this pull request as ready for review August 11, 2025 18:33
@luisjones luisjones requested a review from a team as a code owner August 11, 2025 18:33
@luisjones luisjones changed the title fix: edit image endpoint fix: Azure compatibility with edit image endpoint Aug 26, 2025
@luisjones
Copy link
Contributor Author

luisjones commented Aug 26, 2025

Hi @jacobzim-stl @RobertCraigie @kwhinnery-openai 👋, I can see that you've been quite active in this repository. This PR is currently blocking some of our work, and I'd appreciate if yourselves or someone from the OpenAI team could take a look when you have the chance. Thanks!

Copy link
Collaborator

@RobertCraigie RobertCraigie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Sorry for the delay.

@RobertCraigie RobertCraigie changed the base branch from main to next August 28, 2025 01:59
@RobertCraigie RobertCraigie changed the title fix: Azure compatibility with edit image endpoint fix(azure): compatibility with edit image endpoint Aug 28, 2025
@RobertCraigie RobertCraigie merged commit d156eec into openai:next Aug 28, 2025
2 checks passed
@stainless-app stainless-app bot mentioned this pull request Aug 28, 2025
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.

Azure gpt-image-1 Deployment Name

2 participants