Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI o1 requires "developer" messages instead of "system" messages #1621

Open
sigren opened this issue Dec 21, 2024 · 1 comment
Open

OpenAI o1 requires "developer" messages instead of "system" messages #1621

sigren opened this issue Dec 21, 2024 · 1 comment

Comments

@sigren
Copy link

sigren commented Dec 21, 2024

Developer messages are the new system messages: Starting with o1-2024-12-17, o1 models support developer messages rather than system messages, to align with the chain of command behavior described in the model spec. Learn more.

<class 'openai.BadRequestError'> Error code: 400 - {'error': {'message': "Unsupported value: 'messages[0].role' does not support 'system' with this model.", 'type': 'invalid_request_error', 'param': 'messages[0].role', 'code': 'unsupported_value'}}

@manthanguptaa
Copy link
Contributor

Hey @sigren, thanks for raising this issue. We will test it on our side and keep you updated about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants