#32400 fix(reasoning): let --enable-strict-thinking works for DeepSeek-V4
原始 PR · 作者 ShangmingCai · 合并时间 2026-07-27 18:15
缺陷修复
重要性 6.85
洞察度 5.00
修复 DeepSeek-V4 严格思考模式无法正确屏蔽 EOS
建议合并。该 PR 修复了 DeepSeek-V4 的一个关键 bug,代码简洁、测试完善。值得关注的是 `DeepSeekV4Detector` 的设计模式:直接继承 `BaseReasoningFormatDetector` 而非复用其他模型的 detector,避免了 token 不兼容问题,这是处理特殊 tokenizer 模型的正确做法。