Token usage on Langchain nodes is no longer available in 1.40.0

I’ve created a Bug Report stating that Token usage is no longer available in version 1.40.0: Token usage on Langchain nodes is no longer available in 1.40.0 · Issue #9294 · n8n-io/n8n · GitHub

Bug Description

Token usage is no longer available at logs on Langchain nodes in 1.40.0. It was working up until at least 1.37.0.

1.37.0:


1.40.0:
image

Please note that the output on an added langchain callback on the llm is also empty:

1.37.0:
image
1.40.0:
image

To Reproduce

Use any LLM/Langchain related node and check the logs.

Expected behavior

There should be the token usage info on LLM/Langchain nodes logs.

Information on your n8n setup

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

Hey @miguel-mconf,

Thanks for the report, we are dealing with this on GitHub as that is the first place we noticed this. Generally we only need an issue posted once either here or on GitHub multiple posts can often cause more work as different people may be looking.

New version [email protected] got released which includes the GitHub PR 9311.

2 Likes

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