mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
When DIFY accesses models through the token of One API, the number of tokens consumed during question answering has always been 0. Is there a problem with the configuration? #115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lanqy123 on GitHub (Mar 24, 2025).
Self Checks
Dify version
1.0.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Mar 24, 2025):
I found a similar open issue related to token counting in Dify. The issue suggests checking if similar fixes from previous issues related to token counting could apply to version 1.0.0. It also recommends ensuring that configuration settings, such as
MAXIMUM_CHUNK_TOKEN_LENGTH, are correctly set, as they can affect token counting [1].Additionally, there is a known issue in Dify version 1.0.1 where the Ollama plugin creates an excessive number of threads due to a problem in the token counting function during document processing. This might be related to your issue, as it involves token counting problems [2].
You might want to verify your configuration settings and check if any of these known issues apply to your setup.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@lanqy123 commented on GitHub (Mar 24, 2025):
@lanqy123 commented on GitHub (Mar 24, 2025):
Bypassing One API allows for normal token calculation.
@hjyjack commented on GitHub (Mar 30, 2025):
@lanqy123 这个解决了吗,1.1.3还是存在tokens 0的情况。通过langgenius-openai_api_compatible_0.0.11连接。