Summarization Chain using Open Router as the the Model

Describe the problem/error/question

I used the summarization chain and used Open Router as the Model which indirectly used Google Gemni Model . And once I ran the summarization chain. It sent 2650 tokens and sent 364 requests. As a result i ended up having a negative balance of -2.2. Can someone explain to me what really happened for me to start from $4 to $-2.2

Following is the summarization chain

Information on your n8n setup

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

Hi there, from what i know the behaviour of the summarization chain is like this

from your input, it will split it into different chunk, based on the chunk size you mention, which is 1000 char per chunk with 200 chunk overlap

and for each chunk it will trigger 1 API call, so most likely, why it sent 364 requests it’s because your input got splitted into 364 chunks and for each, trigger 1 api call

which in total resulting in 2650 tokens spent

2 Likes

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