Replies: 1 comment
|
同一个根因,这次在插件那边。第三方插件调模型出结构化内容(翻译、抽取、出题这类)的时候, 插件作者不用等官方改,代码里显式传 reasoningEffort: "off" 就行。最小复现和改法写在 #6857。 Same root cause on the plugin side — third-party plugins hit it too, and authors can work |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Environment
Symptom
Running
/compacton a long session always fails with:With auto-compaction this fails silently in a loop, so the session keeps growing until it hits the context window and outputs get starved.
Root cause
dsh-compaction-basicresolves the summarization budget asmaxTokens ?? 8192. For reasoning models,reasoning_contentcounts against completion tokens: thinking alone exhausts the 8192 budget, leaving an empty or truncated summary, which the quality gate then rejects. Measured on our side: 331 reasoning tokens for a trivial one-line request; multi-minute analyses produce thousands more.Relevant code (
dsh-compaction-basic/lib/index.js,resolveConfig):Suggestions
Also worth documenting: the web layer disables
compaction-basic(auto-compaction), while manual/compactstill goes through the same default — so on web deployments there is currently no working path to compact long sessions with thinking models.中文要点:思考型模型(reasoning 计入输出 token)执行压缩摘要时,默认 8192 的摘要输出预算被思考过程耗尽,摘要为空/截断后被质量门槛拒绝,导致
/compact始终失败(自动压缩同样静默失败循环)。建议默认值随路由模型的输出能力自适应,或开放用户配置。All reactions