Skip to content

fix(llm): 从MiniMax的响应内容中移除<think>标签 - #55

Open
kksty wants to merge 1 commit into
StanleyNull:mainfrom
kksty:fix/minimax-think-tags
Open

fix(llm): 从MiniMax的响应内容中移除<think>标签#55
kksty wants to merge 1 commit into
StanleyNull:mainfrom
kksty:fix/minimax-think-tags

Conversation

@kksty

@kksty kksty commented Aug 31, 2026

Copy link
Copy Markdown

问题

MiniMax-M3 把思考过程嵌在 content 字段(<think>...</think>),而非独立 reasoning 字段,
污染 reviewer/worker 的结构化 JSON 解析。

改动

app/llm/client.py_strip_thinking_tags,在两处响应解析入口剥掉 <think> 块。

影响

  • 不影响模型决策(API 已生成完才剥)
  • 不影响其他模型(均不返回此标签)
  • 不动 tool_calls

测试

MiniMax-M3 真 thinking(reasoning_tokens>0)剥后必要;M2.x 假 thinking 剥后无害。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant