
openai
#10521
unsupported_parameter_error
Unsupported value: 'temperature' parameter only supports the default value of 1 with this model.
This error has been identified and solved.
Reason
The error you're encountering is due to the specific OpenAI model you are using not supporting the temperature value you've specified. In this case, the openai o1
model series only supports a temperature value of 1, which is the default. Any other value, such as 0.2 or 0.7, is not supported by this particular model, leading to the BadRequestError
with the message "Unsupported value: 'temperature' does not support [specified value] with this model. Only the default (1) value is supported."
Solution
To fix the BadRequestError
with the message "Unsupported value: 'temperature' does not support [specified value] with this model. Only the default (1) value is supported," you need to adjust the temperature parameter to be compatible with the OpenAI o1
model. Here are the steps to resolve this issue:
Ensure the temperature parameter is set to the default value of 1.
If your code or configuration explicitly sets the temperature, change it to 1.
If using a third-party tool or integration, check if there is an option to set the temperature to 1 or ensure it does not override the default value.
By setting the temperature to 1, you will comply with the requirements of the OpenAI o1
model and avoid the 400 error.
Suggested Links
https://github.com/jupyterlab/jupyter-ai/issues/994
https://community.openai.com/t/api-temperature-change-from-0-to-1-to-0-to-2-in-playground/217755
https://forum.bubble.io/t/openai-api-error-http-400/263917
https://community.openai.com/t/request-failed-with-status-code-400/39242
https://github.com/Bin-Huang/chatbox/issues/1258
https://cheatsheet.md/chatgpt-cheatsheet/openai-api-error-axioserror-request-failed-status-code-400
https://community.openai.com/t/i-am-receiving-an-error-status-code-400/351121
https://community.make.com/t/receiving-unsupported-parameter-logit-bias-error-with-openai-o1-model/64208
https://community.openai.com/t/getting-400-response-with-already-working-code/509212