-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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 is not counting llm nodes in iteration node #11221
Comments
I found a similar closed issue titled "Upgrade to 0.8.3, metadata still lacks the return of token usage information" which was resolved by a pull request that fixed an assignment exception [1]. In the Dify codebase, token usage tracking within iteration nodes is handled by including the If token usage is not being counted for LLM nodes in iteration nodes, it might be worth checking if the implementation aligns with this approach and if there are any discrepancies in how the events are being generated or handled. |
…us#11221 Signed-off-by: yihong0618 <zouzou0208@gmail.com>
@Nov1c444 Could you please review this issue and the refered solution? |
…anggenius#11221 (langgenius#11224)" This reverts commit fd4be36.
Self Checks
Dify version
0.12.1
Cloud or Self Hosted
Cloud, Self Hosted (Docker)
Steps to reproduce
test.yml.zip
✔️ Expected Behavior
No response
❌ Actual Behavior
The text was updated successfully, but these errors were encountered: