PSA: Azure OpenAI invocations have changed for GPT-5
FYI, the current Azure OpenAI URL structure for GPT-5 models has changed.
# old
https://HOSTNAME.openai.azure.com/openai/deployments/gpt-4.1/chat/completions?api-version=2025-01-01-preview
# new, for gpt-5-mini
https://HOSTNAME.openai.azure.com/openai/responses?api-version=2025-04-01-preview
The model name is now actually sent in the payload:
curl -X POST "https://$HOSTNAME.openai.azure.com/openai/responses?api-version=2025-04-01-preview" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $AZURE_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "I am going to Paris, what should I see?"
}
],
"max_completion_tokens": 16384,
"model": "gpt-5-mini"
}'
What does it say if you try to use the old one?
You can't use GPT-5 with Azure OpenAI in the current version.
Try selecting provider as "OpenAI Format" in Co-Pilot, this defaults to /responses put /openai in the path not /v1
Try selecting provider as "OpenAI Format" in Co-Pilot, this defaults to /responses put /openai in the path not /v1
LM Studio worked for me. I didn't drill down to see how requests are being formatted for this one.