Skip to content

fix(azure): remove model from request body for deployments#2900

Open
micheallam130 wants to merge 2 commits intoopenai:mainfrom
micheallam130:main
Open

fix(azure): remove model from request body for deployments#2900
micheallam130 wants to merge 2 commits intoopenai:mainfrom
micheallam130:main

Conversation

@micheallam130
Copy link

Fixes issue where Azure OpenAI deployments fail when deployment name differs from model name. When using deployment-based endpoints, remove model from request body because Azure uses URL-based routing.

When using Azure OpenAI with deployment-based endpoints, the model
parameter should not be included in the request body because Azure
uses URL-based routing (e.g., /deployments/{deployment-id}/...)
instead of body-based model specification.

This fixes issue where deployments with names different from model
names (e.g., deployment=gpt-image-1-5 for model=gpt-image-1.5)
would fail because Azure validates the body's model field against
actual model names.
@micheallam130 micheallam130 requested a review from a team as a code owner February 26, 2026 16:30
… 'in_memory'

The API expects 'in_memory' (underscore) but SDK typed it as 'in-memory' (hyphen).
This caused 400 Bad Request errors when using the SDK-typed values.

Fixes issue openai#2883
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.

1 participant