Skip to content

Unable to invoke eval APIs with gpt-5x models #45645

@Vaccarini-Lorenzo

Description

@Vaccarini-Lorenzo
  • Package Name: azure-ai-evaluation
  • Package Version: 1.15
  • Operating System: macOS 26.0.1 / Windows 11 Pro
  • Python Version: 3.12.10

Describe the bug
The evaluation SDK APIs that require a LLM-as-a-judge do not work with gpt-5x models: The prompty file hard-wires the param "max_tokens" which is not supported anymore in newer models.

To Reproduce
Steps to reproduce the behavior:

  1. Invoke any LLM-assisted evaluator (CoherenceEvaluator, FluencyEvaluator ...) providing a gpt-5x model.
  2. The response to such invokation will be something like:
    OpenAI API hits BadRequestError: Error code: 400 - {'error': {'message': "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.", 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'unsupported_parameter'}} [Error reference: https://platform.openai.com/docs/guides/error-codes/api-errors]

Metadata

Metadata

Labels

EvaluationIssues related to the client library for Azure AI EvaluationService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions