We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2426e4 commit 4fd1242Copy full SHA for 4fd1242
common/chat.cpp
@@ -1892,7 +1892,7 @@ static common_chat_params common_chat_params_init_hermes_2_pro(const common_chat
1892
// If thinking_forced_open, then we capture the </think> tag in the grammar,
1893
// (important for required tool choice) and in the trigger's first capture (decides what is sent to the grammar)
1894
std::string(data.thinking_forced_open ? "[\\s\\S]*?(</think>\\s*)" : "(?:<think>[\\s\\S]*?</think>\\s*)?") + (
1895
- "(\\s*"
+ "\\s*("
1896
"(?:<tool_call>"
1897
"|<function"
1898
"|(?:```(?:json|xml)?\n\\s*)?(?:<function_call>|<tools>|<xml><json>|<response>)?"
0 commit comments