fix(reasoning-tags): strip MiniMax `mm:` namespaced reasoning tags (#… · openclaw/openclaw@4f860bf
openclaw
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,6 +56,21 @@ describe("stripReasoningTagsFromText", () => {
|
56 | 56 | input: "Before <antml:thinking>secret</antml:thinking> after", |
57 | 57 | expected: "Before after", |
58 | 58 | }, |
| 59 | +{ |
| 60 | +name: "strips mm namespaced think tags (MiniMax)", |
| 61 | +input: "<mm:think>internal reasoning</mm:think>Visible answer.", |
| 62 | +expected: "Visible answer.", |
| 63 | +}, |
| 64 | +{ |
| 65 | +name: "strips mm namespaced thinking/thought variants", |
| 66 | +input: "<mm:thinking>x</mm:thinking>A<mm:thought>y</mm:thought>B", |
| 67 | +expected: "AB", |
| 68 | +}, |
| 69 | +{ |
| 70 | +name: "recovers visible text after truncated mm:think opening tag", |
| 71 | +input: "leaked preamble</mm:think>Real answer.", |
| 72 | +expected: "Real answer.", |
| 73 | +}, |
59 | 74 | { |
60 | 75 | name: "strips multiple reasoning blocks", |
61 | 76 | input: "<think>first</think>A<think>second</think>B", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。