Replies: 1 comment
-
|
To return token usage in your self-developed plugin for Dify v1.9.2, your plugin must ensure that the LLM call returns usage data in the expected format and that Dify is configured to collect it.
Troubleshooting:
This is a known limitation and not a bug in Dify itself, but rather a requirement for plugin implementation. No recent PRs have changed this behavior, so manual code changes are currently the best solution [source]. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
My dify version is 1.9.2. I am developing a plugin and it requires user to select one llm model to user it. But in my test, user cannot see the token usage caused by llm, I wonder how I can add this or it is a bug in current version.


2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions