fixed really weird grammar crash `Unexpected empty grammar stack after accepting piece:`

This commit is contained in:
Pierre F 2025-08-25 20:13:45 +02:00
parent dbae9214b9
commit 86493dd92b
1 changed files with 1 additions and 1 deletions

View File

@ -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)? ";
}
}