minimax

package
v0.0.0-...-1c978d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

thinkstrip.go:推理模型 <think> 块的适配层剥离。

MiniMax M 系经 OpenAI 兼容接口把推理过程以 "<think>...</think>" 内联 在 content 开头。思考文本不该回填上下文(各推理模型厂商的通用实践): 回填徒增后续轮次 token、污染压缩摘要,终端用户还会直接看到思考过程。 在适配层剥除一次,主循环/引擎/技能全部受益;内层模型的回调看到的仍是 原文,观测轨迹不丢推理过程。

剥离语义:只剥**开头**的一个 think 块(M 系的实际形态);未闭合的 think(截断/异常输出)保守不动,交给上层守卫处理。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL