404 This is not a chat model and thus not supported

Cant use the the newer chat model in the agent nodes gives me this error . 404 This is not a chat model and thus not supported in the v1/chat/completions endpoint. About n8n

n8n Version

1.62.3

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @0ne ,

Good to see you back!

Could you please share your workflow so we can see how you’re setting it?
What chat model are you using? Is it giving you issues with all the Agents or only some?

It’s a little abstract so far and it makes it hard to debug :raised_hands:

Hi thank you for helping out, its when I try to use the AI agent node with the open AI tool. it only support models below 4o, i get the error were is looks like it trying to use a incorrect api address ?

400 Unsupported value: ‘messages[0].role’ does not support ‘system’ with this model.
Error details
Other info
n8n version
1.62.3 (Self Hosted)
Stack trace
Error: 400 Unsupported value: ‘messages[0].role’ does not support ‘system’ with this model. at Function.generate (/app/code/node_modules/openai/src/error.ts:70:14) at OpenAI.makeStatusError (/app/code/node_modules/openai/src/core.ts:424:21) at OpenAI.makeRequest (/app/code/node_modules/openai/src/core.ts:488:24) at processTicksAndRejections (node:internal/process/task_queues:95:5) at /app/code/node_modules/@langchain/openai/dist/chat_models.cjs:1362:29 at RetryOperation._fn (/app/code/node_modules/p-retry/index.js:50:12)
.

Have you tried using the tools agent rather than the conversational agent?

same error Problem in node ‘AI Agent‘

400 Unsupported value: ‘messages[0].role’ does not support ‘system’ with this model.

even tried define the texr below