housseinc commited on
Commit
9466f96
·
verified ·
1 Parent(s): 555f88d

Force enable_thinking=true in chat_template

Browse files
Files changed (1) hide show
  1. chat_template.jinja +3 -0
chat_template.jinja CHANGED
@@ -1,3 +1,4 @@
 
1
  {%- if tools %}
2
  {{- '<|im_start|>system\n' }}
3
  {%- if messages[0].role == 'system' %}
@@ -85,5 +86,7 @@
85
  {{- '<|im_start|>assistant\n' }}
86
  {%- if enable_thinking is defined and enable_thinking is false %}
87
  {{- '<think>\n\n</think>\n\n' }}
 
 
88
  {%- endif %}
89
  {%- endif %}
 
1
+ {%- set enable_thinking = true %}
2
  {%- if tools %}
3
  {{- '<|im_start|>system\n' }}
4
  {%- if messages[0].role == 'system' %}
 
86
  {{- '<|im_start|>assistant\n' }}
87
  {%- if enable_thinking is defined and enable_thinking is false %}
88
  {{- '<think>\n\n</think>\n\n' }}
89
+ {%- elif enable_thinking is defined and enable_thinking %}
90
+ {{- '<think>\n' }}
91
  {%- endif %}
92
  {%- endif %}