common/parser: fix nasty bug causing subtle corruption of generation prompt (#20825)

This commit is contained in:
Piotr Wilkin (ilintar) authored and GitHub committed 2026-03-21 00:19:04 +01:00
1 parent e6ec21e62f
commit b1c70e2e54
4 files changed
+52 -1

No files matched your search

+1 -1
View File
@@ -1337,7 +1337,7 @@ static void test_template_output_peg_parsers(bool detailed_debug) {
tst.test("I'm\nthinking\n</think>\nHello, world!\nWhat's up?")
.enable_thinking(true)
.reasoning_format(COMMON_REASONING_FORMAT_NONE)
.expect_content("<think>I'm\nthinking\n</think>\nHello, world!\nWhat's up?")
.expect_content("<think>\nI'm\nthinking\n</think>\nHello, world!\nWhat's up?")
.run();
tst.test("I'm\nthinking\n</think>\nHello, world!\nWhat's up?")