Token 显示bug #9615
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
|
这个“插件设定”Token 显示非零的问题,实际上是因为插件 token 统计逻辑只会统计当前 agent 配置(plugins 数组)里启用的插件。如果 UI 上没有勾选插件但 token 依然不为 0,通常是因为 UI 状态和后端/存储的配置不同步,plugins 数组实际上并没有被清空,导致 token 统计时仍然包含了插件设定内容。 代码和测试都验证了:只要 plugins 数组为空,插件 token 就应该为 0,内置工具也只有在被选中时才会计入 token。如果遇到这种情况,建议尝试刷新页面、切换 agent 或重置 agent 配置,确保 plugins 配置真正清空。如果问题依旧,建议检查 session 或本地存储的同步情况,或者尝试重新登录/清理缓存。这个问题和 token 统计核心逻辑无关,更可能是状态同步或 UI/后端数据未及时更新导致的。相关代码分析 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
是不是启用了搜索?不是模型内置的搜索也算一个插件工具。 |
Beta Was this translation helpful? Give feedback.
-
|
联网搜索也是插件 |
Beta Was this translation helpful? Give feedback.


是不是启用了搜索?不是模型内置的搜索也算一个插件工具。