Logo

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.

Original Error Message

Raw

Unsupported value: 'temperature' parameter only supports the default value of 1 with this model.

Original Error Message

Raw

Unsupported value: 'temperature' parameter only supports the default value of 1 with this model.

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →