common/parser: fix nasty bug causing subtle corruption of generation prompt (#20825)
This commit is contained in:
parent
e6ec21e62f
commit
b1c70e2e54
4 changed files with 52 additions and 1 deletions
|
|
@ -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?")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue