Maximum amount of tokens

Hello,

I’m not being able to make any type of AI agent or AI completion to output more than roughly 2000 tokens. I tried changing the Max Tokens parameters, tried multiple models, and all types of AI nodes, but I’m still stuck.

How can I fix this? Thanks!

Information on your n8n setup

Latest n8n with sqlite

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:

Welcome to the community @cortesventures !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


The longer the text you provide to AI including various types of prompts the more tokens are required for AI to analyze what was asked of. Moreover tokens also consumed for AI to compose a final output as an answer to your question.