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 728c3c0 commit 361d8fbCopy full SHA for 361d8fb
common/chat.cpp
@@ -1890,8 +1890,8 @@ static common_chat_params common_chat_templates_apply_jinja(
1890
return common_chat_params_init_command_r7b(tmpl, params);
1891
}
1892
1893
- // Granite (IBM) - detects thinking support
1894
- if (src.find("elif thinking") != std::string::npos && src.find("<think>") != std::string::npos) {
+ // Granite (IBM) - detects thinking / tools support
+ if (src.find("elif thinking") != std::string::npos && src.find("<|tool_call|>") != std::string::npos) {
1895
return common_chat_params_init_granite(tmpl, params);
1896
1897
0 commit comments