fix: ignore non-string reasoning wrappers

This commit is contained in:
Zhou authored and Xubin Ren committed 2026-06-24 15:45:34 +08:00
1 parent 596bf5398c
commit 35bd1be109
2 files changed
+6 -1

No files matched your search

+3
View File
@@ -327,3 +327,6 @@ class TestStripReasoningTags:
assert strip_reasoning_tags("Preparing final response</thinking>") == (
"Preparing final response"
)
def test_non_string_reasoning_ignored(self):
assert strip_reasoning_tags(object()) == ""