Skip to content

[Bug]: 怎么关闭思考;how to disable thinking #121

@wangyucode

Description

@wangyucode

Basic Information - Models Used

MiniMax-M2.7

Description

为什么就你家模型和别人不一样,关不掉思考;还要一个奇怪的 reasoning_split 参数。
why are you MiniMax model is different from others, Can NOT disaable thinking? and needs a odd reasoning_split parameter

API type or Coding Agent Tool

Nodejs OpenAI sdk

Example Input or Query

const body: OpenAI.Chat.ChatCompletionCreateParamsStreaming & {
        thinking?: { type: string };
        reasoning_split?: boolean;
      } = {
        model: modelConfig.id,
        messages,
        stream: true,
        max_completion_tokens: maxTokens,
      };

      if (thinking) {
        body.reasoning_effort = "low";
      } else {
        body.thinking = {
          type: "disabled",
        };
      }

      if (modelConfig.id === "MiniMax-M2.7" && thinking) {
        body.reasoning_split = true;
      }

Error Logs / Trace ID

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions