Error in sub-node ‘OpenAI Chat Model‘

Hi, I try the AI agent but got into the problem of a to long description. I like to reduce it but I can’t figure out which description the error is referring to. Any help which description is the problem? I tried reducing the system message to a very short one and also just wrote hi in the chat. But it fails regardless.

Invalid 'functions[1].description': string too long. Expected a string with maximum length 1024, but got a string with length 1091 instead.

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:

Hey @jwillmer , I would expect it to be one of the two - either your prompt (whether default taken from previous node or customer if used with “Define below” option) or “System Message” if custom message used. They both are passed over to Chat model and could cause the issue (contribute to it) if too large.

Also note that different models could have different limitations imposed.

The description in the vector store tool was too long. This was not obvious. Thanks for the help :wink:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.