tools/cli: fix disable reasoning
This commit is contained in:
parent
88915cb55c
commit
8d3791d805
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue