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

This commit is contained in:
Piotr Wilkin (ilintar)
2026-03-21 00:19:04 +01:00
committed by GitHub
parent e6ec21e62f
commit b1c70e2e54
4 changed files with 52 additions and 1 deletions
+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?")