Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token usage on Langchain nodes is no longer available in 1.40.0 #9294

Closed
mprytoluk opened this issue May 2, 2024 · 3 comments
Closed

Token usage on Langchain nodes is no longer available in 1.40.0 #9294

mprytoluk opened this issue May 2, 2024 · 3 comments
Labels

Comments

@mprytoluk
Copy link
Contributor

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:
image
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.

Operating System

Ubuntu

n8n Version

1.40.0

Node.js Version

18.x

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented May 3, 2024

Hey @mprytoluk,

Thanks for the report, The team are looking into this now.

@mprytoluk
Copy link
Contributor Author

Thank you for your reply @Joffcom. I can confirm the reported behavior for 1.37.0 is the same for 1.38.1, so it is still working on 1.38.1.

@janober
Copy link
Member

janober commented May 15, 2024

Fix got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants