Skip to content

Commit 0f07f58

Browse files
committed
fix: Don't limit tempalte expansion check to jinja
With the use_jinja check, non-jinja models would enable thinking and always fail assistant prefill Branch: gabe-l-hart/thinking-model-disabled-agent-prefill Signed-off-by: Gabe Goodhart <[email protected]>
1 parent 3344dae commit 0f07f58

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
@@ -2181,7 +2181,7 @@ struct server_context {
21812181
// 1. It's not explicitly disabled (reasoning_budget == 0)
21822182
// 2. The chat template supports it
21832183
bool enable_thinking = params_base.reasoning_budget != 0;
2184-
if (enable_thinking && params_base.use_jinja) {
2184+
if (enable_thinking) {
21852185
common_chat_templates_inputs dummy_inputs;
21862186
common_chat_msg msg;
21872187
msg.role = "user";

0 commit comments

Comments
 (0)