From d1a064070f27679bf2c961c1fbc14712976f787d Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Wed, 5 Feb 2025 16:33:37 +0000 Subject: [PATCH] revert tool example backfill change - command 7rb just needs the right template --- common/chat-template.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/chat-template.hpp b/common/chat-template.hpp index 36dff41db..0e88fb361 100644 --- a/common/chat-template.hpp +++ b/common/chat-template.hpp @@ -316,7 +316,7 @@ class chat_template { auto polyfill_system_role = opts.polyfill_system_role && !caps_.supports_system_role; auto polyfill_tools = opts.polyfill_tools && has_tools && !caps_.supports_tools; - auto polyfill_tool_call_example = polyfill_tools && opts.polyfill_tool_call_examples && caps_.supports_tool_calls; + auto polyfill_tool_call_example = polyfill_tools && opts.polyfill_tool_call_examples; auto polyfill_tool_calls = opts.polyfill_tool_calls && has_tool_calls && !caps_.supports_tool_calls; auto polyfill_tool_responses = opts.polyfill_tool_responses && has_tool_responses && !caps_.supports_tool_responses; auto polyfill_object_arguments = opts.polyfill_object_arguments && has_tool_calls && caps_.requires_object_arguments;