[Bug]: reasoning_split参数设计不合理 - reasoning_content与content边界模糊导致空响应

オープン
#122 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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": "实际回复内容被放在了这里"
  }
}

这导致:

  1. 如果调用方(OpenClaw)将 reasoning_content 路由到 thinking/隐藏区域,用户看到空响应
  2. 正常情况下用户期望 content 有内容,但实际内容在 reasoning_content 里
问题3:thinking_disabled不等于不输出reasoning_content

当发送 thinking: {type: "disabled"} 时,模型仍然返回 reasoning_content 字段,且此时 content 依然为空——说明 thinking: disabled 并没有真正关闭 reasoning_content 的输出逻辑。

复现步骤

  1. 调用 MiniMax OpenAI-compatible 端点(不带 reasoning_split)
  2. 不传任何 thinking 相关参数
  3. 观察返回:content 为空,reasoning_content 有内容

期望行为

  1. 当用户不想看 thinking 时:发送 thinking: {type: "disabled"} → content 应该有完整回复,reasoning_content 应该为空
  2. 当用户想同时看 thinking 和回复时:有一个清晰、标准的方式(比如 reasoning_split: true)→ text 和 thinking 分开返回
  3. reasoning_split 参数应该在官方文档里明确说明用途

影响

任何使用 OpenAI SDK 或兼容层调用 MiniMax 的第三方集成(OpenClaw、Coze、Cursor等)都可能遇到用户看到空响应的问题。

参考

主要言語
言語のデータがありません
スター
2.6k
フォーク
216
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MiniMax-AI/MiniMax-M2 のほかの issue

MiniMax-AI/MiniMax-M2 の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。