Skip to content

Commit 6c019cb

Browse files
authored
server : only attempt to enable thinking if using jinja (#15967)
1 parent 9dcd200 commit 6c019cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,7 @@ struct server_context {
23132313
// thinking is enabled if:
23142314
// 1. It's not explicitly disabled (reasoning_budget == 0)
23152315
// 2. The chat template supports it
2316-
const bool enable_thinking = params_base.reasoning_budget != 0 && common_chat_templates_support_enable_thinking(chat_templates.get());
2316+
const bool enable_thinking = params_base.use_jinja && params_base.reasoning_budget != 0 && common_chat_templates_support_enable_thinking(chat_templates.get());
23172317
SRV_INF("Enable thinking? %d\n", enable_thinking);
23182318

23192319
oai_parser_opt = {

0 commit comments

Comments
 (0)