Logo

openai

#10543

unsupported_value_error

Unsupported value: The specified role is not supported with this model.

This error has been identified and solved.

Reason

The error you're encountering, Unsupported value: 'messages.role' does not support 'developer' with this model., is due to the following reasons:

  • The role specified in your message configuration, namely 'developer', is not supported by the OpenAI model you are using. Specifically, models like 'o1-preview' and 'o1-mini' do not support the 'developer' role.

  • The valid roles for these models are limited to specific values such as SYSTEM, USER, ASSISTANT, FUNCTION, TOOL, CHATBOT, and MODEL, but 'developer' is not among them.

Solution

To fix the Unsupported value: 'messages.role' does not support 'developer' with this model error, you need to adjust the role specified in your message configuration to one of the supported roles. Here are the steps to resolve this issue:

  • Replace the 'developer' role with one of the valid roles.

  • Use one of the following supported roles: SYSTEM, USER, ASSISTANT, FUNCTION, TOOL, CHATBOT, or MODEL.

Ensure that your message configuration aligns with these supported roles to avoid the BadRequestError.

Original Error Message

Raw

Unsupported value: The specified role is not supported with this model.

Original Error Message

Raw

Unsupported value: The specified role is not supported with this model.

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →