fix(utils): cover complete trailing think markers

Made-with: Cursor
This commit is contained in:
Xubin Ren
2026-05-01 20:09:59 +08:00
committed by Xubin Ren
parent 2c397ad442
commit 188e6df757
3 changed files with 25 additions and 2 deletions
+2
View File
@@ -105,10 +105,12 @@ class TestStripThinkMalformedLeaks:
def test_partial_trailing_think_tag_after_visible_text(self):
assert strip_think("喷泉策略说明 <thin") == "喷泉策略说明"
assert strip_think("answer <thought") == "answer"
assert strip_think("answer <think>") == "answer"
def test_partial_trailing_channel_marker_after_visible_text(self):
assert strip_think("喷泉策略说明 <|chan") == "喷泉策略说明"
assert strip_think("answer <channel") == "answer"
assert strip_think("answer <|channel|>") == "answer"
class TestStripThinkConservativePreserve: