Azure / Azure/azure-sdk-for-python

Please add support for Azure AI OpenAI ChatGPT5* models

Open
#46,146 0 comments 0 reactions 1 assignee Claimed by @dargilco View on GitHub
customer-reported needs-team-attention question
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

**Is your feature request related to a problem? Please describe.**
Please add support for Azure AI OpenAI ChatGPT5* models. We are using this SDK in our Copilot Agentic Evals tool and customers are requesting us to use GPT5 mini models as they are more efficient. Currently, only the 4.1* models work with the SDK.

The GPT5 model I tried with -
AZURE_AI_OPENAI_ENDPOINT="https://saideepthik-8740-resource.cognitiveservices.azure.com/openai/responses?api-version=2025-04-01-preview%22
AZURE_AI_API_VERSION="2025-04-01-preview"
AZURE_AI_MODEL_NAME="gpt-5.4-mini"

Error I got -
azure.ai.evaluation._legacy.prompty._exceptions.WrappedOpenAIError: (UserError) OpenAI API hits BadRequestError: Error code: 400 - {'error': {'message': "Unsupported parameter: 'response_format'. In the Responses API, this parameter has moved to 'text.format'. Try again with the new parameter. See the API documentation for more information: [https://platform.openai.com/docs/api-reference/responses/create."](https://platform.openai.com/docs/api-reference/responses/create.%22), 'type': 'invalid_request_error', 'param': None, 'code': 'unsupported_parameter'}} [Error reference: https://platform.openai.com/docs/guides/error-codes/api-errors]

This is the initial investigation by Waqas -
We use response_format in Eval SDK to define to enforce output format.
Looks like they changed the contract.
https://github.com/search?q=repo%3AAzure%2Fazure-sdk-for-python+path%3A%2F%5Esdk%5C%2Fevaluation%5C%2Fazure-ai-evaluation%5C%2F%2F+response_format&type=code

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.