Skip to content

[Bug]: Evaluation fails using gpt-5 with ragas: temperature parameter not supported #1124

@antoniomtz

Description

@antoniomtz

Version

1.3.0

Which installation method(s) does this occur on?

PyPi

Describe the bug.

Description

When running ragas accuracy evaluations using gpt-5 model, the evaluation fails with a 400 error indicating that the temperature parameter is not supported.

Error Message

ragas.metrics.nv_metrics:157 - An error occurred: Error code: 400 - {'error': {'message': "Unsupported value: 'temperature' does not support 0.1 with this model. Only the default (1) value is supported.", 'type': 'invalid_request_error', 'param': 'temperature', 'code': 'unsupported_value'}}. Skipping a sample by assigning it nan score.

As per openAI documentation https://platform.openai.com/docs/guides/latest-model#gpt-5-parameter-compatibility, temperature is not supported for GPT-5 models.

Minimum reproducible example

create evaluators using ragas:

judge_llm:
   _type: openai
   model_name: gpt-5

accuracy:
  _type: ragas
  metric: AnswerAccuracy
  llm_name: judge_llm

Relevant log output

Click here to see error details

WARNING - ragas.metrics._nv_metrics:157 - An error occurred: Error code: 400 - {'error': {'message': "Unsupported value: 'temperature' does not support 0.1 with this model. Only the default (1) value is supported.", 'type': 'invalid_request_error', 'param': 'temperature', 'code': 'unsupported_value'}}. Skipping a sample by assigning it nan score.

Other/Misc.

No response

Code of Conduct

  • I agree to follow the NeMo Agent toolkit Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions