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
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
As per openAI documentation https://platform.openai.com/docs/guides/latest-model#gpt-5-parameter-compatibility,
temperatureis not supported for GPT-5 models.Minimum reproducible example
Relevant log output
Click here to see error details
Other/Misc.
No response
Code of Conduct