[Bug]: reasoning_split参数设计不合理 - reasoning_content与content边界模糊导致空响应
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 领域
- api
调研方向
Start by comparing the MiniMax OpenAI-compatible endpoint behavior with the documented request parameters and the related issue #121. Reproduce the response with and without reasoning_split and with thinking: {type: "disabled"}. Done means the API returns the expected user-facing content and documents a clear way to separate reasoning from the reply.
由索引模型根据 Issue 内容生成。
描述
问题类型
API 设计问题 + 行为 bug
使用的模型
MiniMax-M2.7(其他版本也受影响)
问题描述
问题1:reasoning_split参数不透明
reasoning_split 是 MiniMax 扩展参数,不在任何 OpenAI SDK 标准里,也没有在官方 API 文档里明确说明其作用。用户在集成时无法从标准文档了解到这个参数的存在。
问题2:不传reasoning_split时content为空
当不传 reasoning_split 参数时,MiniMax-M2.7 返回的响应结构为:
{
"type": "message",
"message": {
"role": "assistant",
"content": "", // 可见内容为空
"reasoning_content": "实际回复内容被放在了这里"
}
}
这导致:
- 如果调用方(OpenClaw)将
reasoning_content路由到 thinking/隐藏区域,用户看到空响应 - 正常情况下用户期望
content有内容,但实际内容在reasoning_content里
问题3:thinking_disabled不等于不输出reasoning_content
当发送 thinking: {type: "disabled"} 时,模型仍然返回 reasoning_content 字段,且此时 content 依然为空——说明 thinking: disabled 并没有真正关闭 reasoning_content 的输出逻辑。
复现步骤
- 调用 MiniMax OpenAI-compatible 端点(不带
reasoning_split) - 不传任何 thinking 相关参数
- 观察返回:content 为空,reasoning_content 有内容
期望行为
- 当用户不想看 thinking 时:发送
thinking: {type: "disabled"}→content应该有完整回复,reasoning_content应该为空 - 当用户想同时看 thinking 和回复时:有一个清晰、标准的方式(比如
reasoning_split: true)→ text 和 thinking 分开返回 reasoning_split参数应该在官方文档里明确说明用途
影响
任何使用 OpenAI SDK 或兼容层调用 MiniMax 的第三方集成(OpenClaw、Coze、Cursor等)都可能遇到用户看到空响应的问题。
参考
- OpenClaw issue: https://github.com/openclaw/openclaw/issues/76048(我们通过在本地代理注入
reasoning_split: true临时解决) - 相关 Issue: https://github.com/MiniMax-AI/MiniMax-M2/issues/121
- 主要语言
- 没有语言数据
- 星标
- 2.6k
- 派生
- 216
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MiniMax-AI/MiniMax-M2 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 1/100
MiniMax-AI/MiniMax-M2#133 ·
-
难度 1/5 1 小时以内 新手友好度 1/100
MiniMax-AI/MiniMax-M2#132 ·
-
难度 1/5 1 小时以内 新手友好度 1/100
MiniMax-AI/MiniMax-M2#130 ·
-
难度 1/5 1 小时以内 新手友好度 1/100
MiniMax-AI/MiniMax-M2#129 ·
-
难度 4/5 3-5 天 新手友好度 35/100
MiniMax-AI/MiniMax-M2#126 ·
查看 MiniMax-AI/MiniMax-M2 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
grafana/viz-contract#151 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
erigontech/erigon#27233 ·
维护者通常 1 天内回复
-
integration: matter
难度 2/5 1-3 小时 新手友好度 76/100
home-assistant/core#196219 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
area:api p2 product:business triage:active type:feat
难度 2/5 1-3 小时 新手友好度 68/100
cuadrao-ai/argus#2656 ·
维护者通常 1 天内回复