@@ -1606,87 +1606,6 @@ static void test_template_output_parsers() {
1606
1606
/* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1607
1607
/* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1608
1608
}));
1609
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" ),
1610
- common_chat_parse (
1611
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1612
- " <|start|>assistant<|channel|>commentary to=" ,
1613
- /* is_partial= */ true ,
1614
- {
1615
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1616
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1617
- }));
1618
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" ),
1619
- common_chat_parse (
1620
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1621
- " <|start|>assistant<|channel|>commentary to=func" ,
1622
- /* is_partial= */ true ,
1623
- {
1624
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1625
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1626
- }));
1627
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" ),
1628
- common_chat_parse (
1629
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1630
- " <|start|>assistant<|channel|>commentary to=functions." ,
1631
- /* is_partial= */ true ,
1632
- {
1633
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1634
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1635
- }));
1636
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" ),
1637
- common_chat_parse (
1638
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1639
- " <|start|>assistant<|channel|>commentary to=functions.special_" ,
1640
- /* is_partial= */ true ,
1641
- {
1642
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1643
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1644
- }));
1645
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" ),
1646
- common_chat_parse (
1647
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1648
- " <|start|>assistant<|channel|>commentary to=functions.special_function" ,
1649
- /* is_partial= */ true ,
1650
- {
1651
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1652
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1653
- }));
1654
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" ),
1655
- common_chat_parse (
1656
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1657
- " <|start|>assistant<|channel|>commentary to=functions.special_function <|constrain|>" ,
1658
- /* is_partial= */ true ,
1659
- {
1660
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1661
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1662
- }));
1663
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" ),
1664
- common_chat_parse (
1665
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1666
- " <|start|>assistant<|channel|>commentary to=functions.special_function <|constrain|>json" ,
1667
- /* is_partial= */ true ,
1668
- {
1669
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1670
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1671
- }));
1672
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" , " special_function" , " " ),
1673
- common_chat_parse (
1674
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1675
- " <|start|>assistant<|channel|>commentary to=functions.special_function <|constrain|>json<|message|>" ,
1676
- /* is_partial= */ true ,
1677
- {
1678
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1679
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1680
- }));
1681
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" , " special_function" , " " ),
1682
- common_chat_parse (
1683
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1684
- " <|start|>assistant<|channel|>commentary to=functions.special_function <|message|>" ,
1685
- /* is_partial= */ true ,
1686
- {
1687
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1688
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1689
- }));
1690
1609
assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" , " special_function" , " {\" arg1" ),
1691
1610
common_chat_parse (
1692
1611
" <|channel|>analysis<|message|>I'm\n thinking<|end|>"
@@ -1705,15 +1624,6 @@ static void test_template_output_parsers() {
1705
1624
/* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1706
1625
/* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1707
1626
}));
1708
- assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" , " special_function" , " {\" arg1\" : 1}" ),
1709
- common_chat_parse (
1710
- " <|channel|>analysis<|message|>I'm\n thinking<|end|>"
1711
- " <|start|>assistant<|channel|>commentary to=functions.special_function <|constrain|>json<|message|>{\" arg1\" : 1}" ,
1712
- /* is_partial= */ true ,
1713
- {
1714
- /* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1715
- /* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1716
- }));
1717
1627
assert_msg_equals (simple_assist_msg (" " , " I'm\n thinking" , " special_function" , " {\" arg1\" : 1}" ),
1718
1628
common_chat_parse (
1719
1629
" <|channel|>analysis<|message|>I'm\n thinking<|end|>"
@@ -1723,7 +1633,6 @@ static void test_template_output_parsers() {
1723
1633
/* .format = */ COMMON_CHAT_FORMAT_GPT_OSS,
1724
1634
/* .reasoning_format = */ COMMON_REASONING_FORMAT_AUTO,
1725
1635
}));
1726
-
1727
1636
assert_msg_equals (simple_assist_msg (" Hello, world!\n What's up?" , " I'm\n thinking" ),
1728
1637
common_chat_parse (
1729
1638
" <|channel|>analysis<|message|>I'm\n thinking<|end|>"
0 commit comments