Skip to content

使用自定义模型时思考字段出现错误 #3669

@YlLVTECH

Description

@YlLVTECH

What happened?

在使用自定义模型时思考字段出现错误,我在使用minimax m2.7自定义模型时,会因为无法正确兼容思考数据标签导致在输出文本中没有正确显示思考内容

Image

What did you expect to happen?

Image正确的输出应该要识别到思考的标签并且进行正确的处理

Client information

Client Information

Run qwen to enter the interactive CLI, then run the /about command.

 > /about

  ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
  │                                                                                                  │
  │ 状态                                                                                             │
  │                                                                                                  │
  │ Qwen Code                         0.15.3 (dad983203)                                             │
  │ 运行环境                          Node.js v24.13.0 / npm 11.9.0                                  │
  │ 操作系统                          win32 x64 (10.0.26200)                                         │
  │                                                                                                  │
  │ 认证                              API Key - openai                                               │
  │ 基础 URL                          https://api.minimaxi.com/v1                                    │
  │ 模型                              MiniMax-M2.7                                                   │
  │ 快速模型                          qwen3.6-plus                                                   │
  │ 会话 ID                           cff37438-9e2d-42f9-af2c-d42047093a11                           │
  │ 沙箱                              no sandbox                                                     │
  │ 代理                              no proxy                                                       │
  │ 内存使用                          266.8 MB                                                       │
  │                                                                                                  │
  ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

  > /copy

Login information

我的自定义 api 设置,{
"id": "MiniMax-M2.7",
"name": "MiniMax-M2.7",
"baseUrl": "https://api.minimaxi.com/v1",
"envKey": "MINIMAX_CODING_PLAN_API_KEY",
"generationConfig": {
"extra_body": {
"enable_thinking": false
},
"contextWindowSize": 204800
}
}, 在setting文件中

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-triageIssue needs to be triaged and labeledtype/bugSomething isn't working as expected

    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