Azure / Azure/azure-sdk-for-python

Please add support for Azure AI OpenAI ChatGPT5* models

Aperta
#46,146 0 commenti 0 reazioni 1 assegnatario Rivendicata da @dargilco Vedi su GitHub
customer-reported needs-team-attention question
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.