tools/cli: fix disable reasoning (#20606)
This commit is contained in:
committed by
GitHub
parent
88915cb55c
commit
9e2e2198b0
+1
-1
@@ -215,7 +215,7 @@ struct cli_context {
|
|||||||
inputs.parallel_tool_calls = false;
|
inputs.parallel_tool_calls = false;
|
||||||
inputs.add_generation_prompt = true;
|
inputs.add_generation_prompt = true;
|
||||||
inputs.reasoning_format = COMMON_REASONING_FORMAT_DEEPSEEK;
|
inputs.reasoning_format = COMMON_REASONING_FORMAT_DEEPSEEK;
|
||||||
inputs.enable_thinking = common_chat_templates_support_enable_thinking(chat_params.tmpls.get());
|
inputs.enable_thinking = chat_params.enable_thinking ? common_chat_templates_support_enable_thinking(chat_params.tmpls.get()) : false;
|
||||||
|
|
||||||
// Apply chat template to the list of messages
|
// Apply chat template to the list of messages
|
||||||
return common_chat_templates_apply(chat_params.tmpls.get(), inputs);
|
return common_chat_templates_apply(chat_params.tmpls.get(), inputs);
|
||||||
|
|||||||
Reference in New Issue
Block a user