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 and newer uses developer instead of system in messages #12675

Open
rlynggaard opened this issue Jan 17, 2025 · 1 comment · May be fixed by #12704
Open

OpenAI o1 and newer uses developer instead of system in messages #12675

rlynggaard opened this issue Jan 17, 2025 · 1 comment · May be fixed by #12704
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@rlynggaard
Copy link

Bug Description

An error occurs when using o1 models as OpenAI decided that a system message no longer is called a system message, but a developer message

To Reproduce

Insert an AI agent in your flow
Select the o1 (or 01-mini) model as model

When running the flow you'll get an error
"Unsupported value: 'messages[0].role' does not support 'system' with this model."

Expected behavior

Messages using "developer" as message role instead of "system"

https://platform.openai.com/docs/api-reference/chat

Operating System

all

n8n Version

1.74.2

Node.js Version

?

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jan 17, 2025

Hey @rlynggaard,

We have created an internal ticket to look into this which we will be tracking as "N8N-8142"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants