From e62cd709e793a7acfbc5f9508960db6f0929a21f Mon Sep 17 00:00:00 2001 From: CNE FICHEPOIL Pierre Date: Tue, 26 Aug 2025 15:01:36 +0200 Subject: [PATCH] removed `?` from grammar as it doesn't crash on linux, probably worth it's own issue --- common/chat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/chat.cpp b/common/chat.cpp index 154b2a352d..ff4ca39ad7 100644 --- a/common/chat.cpp +++ b/common/chat.cpp @@ -1837,11 +1837,11 @@ static common_chat_params common_chat_params_init_hermes_2_pro(const common_chat if (extra_context["enable_thinking"]) { if (data.thinking_forced_open) { //thinking tag was already opened by used so we don't need to add it again - thinking_grammar_logic = "(thinking-content thinking-end)? "; + thinking_grammar_logic = "(thinking-content thinking-end) "; } else { - thinking_grammar_logic = "(thinking-start thinking-content thinking-end)? "; + thinking_grammar_logic = "(thinking-start thinking-content thinking-end) "; } }