<think> tags shown in agent output instead of being filtered

未关闭
#24 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
领域
ai

调研方向

Start by reproducing the visible thinking tags with MiniMax-M2.7 through Zed or Claude Code, including AI-generated commit messages, and review issue #12 for related context. Done means internal thinking content is no longer exposed to users or included in generated commit messages, with the chosen API or parsing behavior documented.

由索引模型根据 Issue 内容生成。

描述

Problem

When using MiniMax-M2.7 through agent integrations (Zed, Claude Code, etc.), the thinking tags are being displayed as visible text in the chat instead of being processed internally and filtered out.

Also affects AI commit messages

This issue also occurs when MiniMax-M2.7 is used to generate commits via AI. The thinking tags appear in the commit message output, showing the model internal reasoning process as visible text.

Expected behavior

The thinking tags should be processed internally by the agent framework and not shown to the end user. Only the actual response content should be visible.

Impact

  1. Poor user experience - users see internal reasoning mixed with responses
  2. Context bloat - thinking tokens accumulate in conversation history
  3. Makes the model appear broken or misconfigured
  4. Commit messages contain unwanted thinking content

Root cause

The thinking tags are part of the model output format but agent integrations are treating the thinking content as regular text output rather than internal processing that should be stripped.

Suggested solutions

  1. API parameter to control whether thinking tags are included in output
  2. Default behavior change to NOT include thinking content in API output streams
  3. Better documentation on how agents should properly parse and filter thinking content

References

  • Issue #12 also reports verbose thinking causing context issues with Claude Code
主要语言
没有语言数据
星标
366
派生
65
平均合并
15 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MiniMax-AI/MiniMax-M2.7 的其他 Issue

查看 MiniMax-AI/MiniMax-M2.7 的全部 Issue

相似的 Issue

更多 AI Infra & Agents Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。