AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug]提供商MiniMax 模型Minimax 2.7 <think></think>标签未去除

Open JackZhaoooooo opened this issue 8 months ago • 5 comments

What happened / 发生了什么

Image 标签未去除

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 / 报错日志

Image

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • [ ] Yes!

Code of Conduct

JackZhaoooooo avatar Mar 26 '26 14:03 JackZhaoooooo

这是一个已知的 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.

Leave Feedback Learn about AstrBot with Dosu Add Dosu to your team

dosubot[bot] avatar Mar 26 '26 14:03 dosubot[bot]

有一个临时解决方案 Image 使用 Anthropic 作为提供商并填写 minimax 的参数,这样对话中的 think 标签就可以被过滤了。 (使用 Minimax Token Plan 尝试有效)

Miraculy avatar Mar 26 '26 16:03 Miraculy

有一个临时解决方案 Image 使用 Anthropic 作为提供商并填写 minimax 的参数,这样对话中的 think 标签就可以被过滤了。 (使用 Minimax Token Plan 尝试有效)

我知道,但是anthropic调用会解析json错误。。。😂

JackZhaoooooo avatar Mar 26 '26 16:03 JackZhaoooooo

zed编辑器接入minimax也有同样的问题

LIghtJUNction avatar Mar 26 '26 16:03 LIghtJUNction

stream: false

vito0527opencode avatar Apr 30 '26 14:04 vito0527opencode