[Bug]提供商MiniMax 模型Minimax 2.7 <think></think>标签未去除
What happened / 发生了什么
Reproduce / 如何复现?
随便聊几句
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
4.22.1,linux
OS
Linux
Logs / 报错日志
Are you willing to submit a PR? / 你愿意提交 PR 吗?
- [ ] Yes!
Code of Conduct
- [x] I have read and agree to abide by the project's Code of Conduct。
这是一个已知的 Bug,与 Issue #6647 和 Issue #6745 重复。
问题原因:MiniMax 通过 Anthropic 适配器访问,返回的是 ThinkingBlock 格式而非标准的 <think></think> 标签。当前的思考标签过滤逻辑仅在 OpenAI 提供商中实现,不支持 Anthropic 适配器,因此 display_reasoning_text 配置对 MiniMax 无效。
临时解决方案:尝试使用 MiniMax 的 Anthropic API 兼容模式配置。
To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.
有一个临时解决方案
使用 Anthropic 作为提供商并填写 minimax 的参数,这样对话中的 think 标签就可以被过滤了。
(使用 Minimax Token Plan 尝试有效)
有一个临时解决方案
使用 Anthropic 作为提供商并填写 minimax 的参数,这样对话中的 think 标签就可以被过滤了。 (使用 Minimax Token Plan 尝试有效)
我知道,但是anthropic调用会解析json错误。。。😂
zed编辑器接入minimax也有同样的问题
stream: false
使用 Anthropic 作为提供商并填写 minimax 的参数,这样对话中的 think 标签就可以被过滤了。 (使用 Minimax Token Plan 尝试有效)