
openai
#10525
unsupported_parameter_error
A specified parameter is not supported with the current model.
This error has been identified and solved.
Reason
The error you are encountering, "Unsupported parameter: 'temperature' is not supported with this model," is likely due to the specific OpenAI model you are using not supporting the temperature
parameter. In the case of the new OpenAI o1
model series, only the default temperature value of 1 is supported, and any other value will result in an error. This restriction is model-specific and indicates that the model configuration does not allow for adjustable temperature settings.
Solution
To resolve the error "Unsupported parameter: 'temperature' is not supported with this model," you need to adjust your API calls to comply with the model's limitations. Here are the key steps:
Use the default temperature: Since the
o1
model series only supports a temperature value of 1, ensure that you set the temperature to this default value.Check model compatibility: Verify that the model you are using does not support adjustable temperature settings.
Avoid setting temperature explicitly: If the model does not support temperature adjustments, do not include the
temperature
parameter in your API calls.
By following these steps, you can avoid the 400 status error related to unsupported parameters.
Suggested Links
https://github.com/jupyterlab/jupyter-ai/issues/994
https://github.com/Nutlope/aicommits/issues/137
https://community.openai.com/t/request-failed-with-status-code-400/39242
https://forum.bubble.io/t/openai-api-error-http-400/263917
https://community.openai.com/t/content-is-required-property-error-400/486260
https://github.com/openai/openai-python/issues/1362
https://learn.microsoft.com/en-us/answers/questions/2139738/openai-badrequesterror-error-code-400-((error-((me
https://community.studio3t.com/t/openai-implementation-is-incorrect-temperature-seems-to-be-set-at-1/1633
https://community.openai.com/t/cannot-set-temperature-parameter-in-assistant-api-call/721547