Skip to content

Commit 361d8fb

Browse files
committed
make it less likely to misidentify the template
1 parent 728c3c0 commit 361d8fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/chat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,8 +1890,8 @@ static common_chat_params common_chat_templates_apply_jinja(
18901890
return common_chat_params_init_command_r7b(tmpl, params);
18911891
}
18921892

1893-
// Granite (IBM) - detects thinking support
1894-
if (src.find("elif thinking") != std::string::npos && src.find("<think>") != std::string::npos) {
1893+
// Granite (IBM) - detects thinking / tools support
1894+
if (src.find("elif thinking") != std::string::npos && src.find("<|tool_call|>") != std::string::npos) {
18951895
return common_chat_params_init_granite(tmpl, params);
18961896
}
18971897

0 commit comments

Comments
 (0)