Skip to content

fix(azure): route image edits by model deployment#1931

Open
Resurgamz wants to merge 1 commit into
openai:mainfrom
Resurgamz:fix/issue-1917-azure-images-edit
Open

fix(azure): route image edits by model deployment#1931
Resurgamz wants to merge 1 commit into
openai:mainfrom
Resurgamz:fix/issue-1917-azure-images-edit

Conversation

@Resurgamz

Copy link
Copy Markdown

Summary

  • Pass image edit model metadata through multipart request options so Azure can route /images/edits requests to the matching deployment.
  • Add an Azure regression test for client.images.edit() without a client-level deployment.

Changes

File Change
src/resources/images.ts Includes __metadata: { model: body.model } for image edit multipart requests.
tests/lib/azure.test.ts Covers Azure deployment URL mapping for image edits.

Test Plan

  • npx --yes yarn@1.22.22 test tests/lib/azure.test.ts --runInBand

Fixes #1917

@Resurgamz Resurgamz marked this pull request as ready for review June 9, 2026 02:30
@Resurgamz Resurgamz requested a review from a team as a code owner June 9, 2026 02:30
@Resurgamz

Copy link
Copy Markdown
Author

@openai/sdks-team @apcha-oai Could you please help review and approve this PR? Thanks.

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: images.edit ignores per-request model, requests go to wrong URL (404)

1 participant