From 86493dd92b7d7ab2e2312df08b937ecbf0470ef7 Mon Sep 17 00:00:00 2001 From: Pierre F Date: Mon, 25 Aug 2025 20:13:45 +0200 Subject: [PATCH] fixed really weird grammar crash `Unexpected empty grammar stack after accepting piece:` --- common/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/chat.cpp b/common/chat.cpp index 67db927a5c..52743a1d32 100644 --- a/common/chat.cpp +++ b/common/chat.cpp @@ -1837,7 +1837,7 @@ static common_chat_params common_chat_params_init_hermes_2_pro(const common_chat } else { - thinking_grammar_logic = "thinking-start thinking-content thinking-end "; + thinking_grammar_logic = "(thinking-start thinking-content thinking-end)? "; } }