]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : only attempt to enable thinking if using jinja (#15967)
authorSigbjørn Skjæret <redacted>
Sun, 14 Sep 2025 19:17:04 +0000 (21:17 +0200)
committerGitHub <redacted>
Sun, 14 Sep 2025 19:17:04 +0000 (21:17 +0200)
tools/server/server.cpp

index 160b97cf7d2c9804ae7963f8d022973939eb6e65..519704fad79301be0840dd955cb18e2eb4ea4443 100644 (file)
@@ -2313,7 +2313,7 @@ struct server_context {
         // thinking is enabled if:
         // 1. It's not explicitly disabled (reasoning_budget == 0)
         // 2. The chat template supports it
-        const bool enable_thinking = params_base.reasoning_budget != 0 && common_chat_templates_support_enable_thinking(chat_templates.get());
+        const bool enable_thinking = params_base.use_jinja && params_base.reasoning_budget != 0 && common_chat_templates_support_enable_thinking(chat_templates.get());
         SRV_INF("Enable thinking? %d\n", enable_thinking);
 
         oai_parser_opt = {