Skip to content

v1.3.3

Choose a tag to compare

@MagicalYuYu MagicalYuYu released this 13 Jun 05:25

v1.3.3 Bug 修复

GLM 多段草稿输出过滤

修复 GLM-4-7-251222 模型在回复中将推理过程的多段草稿混入 content 字段导致异常输出的问题。

异常表现:用户看到的消息包含用户消息回显、上下文元数据(「[发送时间:...]」)、多个版本的回复草稿和 response 分隔符。

根因:GLM 模型将推理过程的多段草稿全部写入 content 字段,用 response 分隔,而现有 _filter_thinking_tags 仅处理单个 response 分隔符。

修复内容

  • _filter_thinking_tags 改为两步检测:先非贪婪移除第一个 response 段,若残留仍含 response 则贪婪移除全部,仅保留最终版
  • 新增 LLM 元数据回显过滤:移除 [发送时间:...][平台:...] 等模式
  • _filter_duplicate_response 新增 response 多段草稿模式处理

完整更新日志: https://github.com/MagicalYuYu/astrbot_plugin_smart_wakeup/blob/main/CHANGELOG.md