dsh-collapse-guard:在流式推理塌缩时掐断,避免垃圾进历史

dsh-collapse-guard(doudou-collapse-guard)是 otonemame 维护的 DSH 模型推理插件,挂在 llm/stream 上检测短句刷屏、周期循环与段落复读等塌缩形态,命中后以 finish(error) 与 STREAM_COLLAPSE 结束本步,不产生 assistant/message。兼容 dsh>=0.2.1、node>=20,支持 fires.jsonl 交接记录与 JSON/环境变量调参。安装:plugin_manager install_bundle target="github:otonemame/dsh-collapse-guard"。

阅读全文