Logo

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.

Original Error Message

Raw

A specified parameter is not supported with the current model.

Original Error Message

Raw

A specified parameter is not supported with the current model.

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →