Skip to content

fix(azure): strip model from image generation body#671

Open
MukundaKatta wants to merge 1 commit into
openai:mainfrom
MukundaKatta:codex/azure-image-generation-strip-model
Open

fix(azure): strip model from image generation body#671
MukundaKatta wants to merge 1 commit into
openai:mainfrom
MukundaKatta:codex/azure-image-generation-strip-model

Conversation

@MukundaKatta

Copy link
Copy Markdown

Fixes #641.

Summary:

  • keep using model to derive the Azure deployment path for /images/generations
  • remove model from the image generation JSON body before sending the request to Azure
  • restore request body metadata after Azure middleware reads or mutates JSON bodies
  • add regression coverage for Azure image generation routing/body shaping

Tests:

  • go test ./azure -count=1

@MukundaKatta
MukundaKatta requested a review from a team as a code owner May 15, 2026 15:23
@MukundaKatta
MukundaKatta force-pushed the codex/azure-image-generation-strip-model branch from 7b7a165 to 453772f Compare May 28, 2026 07:13
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.

bug: Azure middleware fails to route Image Generation correctly (404/400 mismatch)

1 participant