Skip to content

Commit 9e2e219

Browse files
authored
tools/cli: fix disable reasoning (ggml-org#20606)
1 parent 88915cb commit 9e2e219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cli/cli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ struct cli_context {
215215
inputs.parallel_tool_calls = false;
216216
inputs.add_generation_prompt = true;
217217
inputs.reasoning_format = COMMON_REASONING_FORMAT_DEEPSEEK;
218-
inputs.enable_thinking = common_chat_templates_support_enable_thinking(chat_params.tmpls.get());
218+
inputs.enable_thinking = chat_params.enable_thinking ? common_chat_templates_support_enable_thinking(chat_params.tmpls.get()) : false;
219219

220220
// Apply chat template to the list of messages
221221
return common_chat_templates_apply(chat_params.tmpls.get(), inputs);

0 commit comments

Comments
 (0)