fix(llm): 从MiniMax的响应内容中移除<think>标签 - #55
Open
kksty wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
MiniMax-M3 把思考过程嵌在
content字段(<think>...</think>),而非独立reasoning字段,污染 reviewer/worker 的结构化 JSON 解析。
改动
app/llm/client.py加_strip_thinking_tags,在两处响应解析入口剥掉<think>块。影响
tool_calls测试
MiniMax-M3 真 thinking(reasoning_tokens>0)剥后必要;M2.x 假 thinking 剥后无害。