Skip to content

Commit 6eb75e7

Browse files
CNE FICHEPOIL PierrePierre F
authored andcommitted
removed ? from grammar as it doesn't crash on linux, probably worth it's own issue
1 parent 05391a6 commit 6eb75e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/chat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,11 +1837,11 @@ static common_chat_params common_chat_params_init_hermes_2_pro(const common_chat
18371837
if (extra_context["enable_thinking"]) {
18381838
if (data.thinking_forced_open) {
18391839
//thinking tag was already opened by used so we don't need to add it again
1840-
thinking_grammar_logic = "(thinking-content thinking-end)? ";
1840+
thinking_grammar_logic = "(thinking-content thinking-end) ";
18411841
}
18421842
else
18431843
{
1844-
thinking_grammar_logic = "(thinking-start thinking-content thinking-end)? ";
1844+
thinking_grammar_logic = "(thinking-start thinking-content thinking-end) ";
18451845
}
18461846
}
18471847

0 commit comments

Comments
 (0)