LiangJiang commited on
Commit
6135326
·
verified ·
1 Parent(s): c9dbd8c

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +6 -3
chat_template.jinja CHANGED
@@ -50,7 +50,11 @@
50
  {%- endif %}
51
  {%- endif %}
52
  {%- if loop.index0 > ns.last_query_index %}
53
- {{- '<role>ASSISTANT</role>\n' + '<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
 
 
 
 
54
  {%- else %}
55
  {{- '<role>ASSISTANT</role>\n' + content }}
56
  {%- endif %}
@@ -91,6 +95,5 @@
91
  {%- endif %}
92
  {%- endfor %}
93
  {%- if add_generation_prompt %}
94
- {{- '<role>ASSISTANT</role>\n' }}
95
  {%- endif %}
96
-
 
50
  {%- endif %}
51
  {%- endif %}
52
  {%- if loop.index0 > ns.last_query_index %}
53
+ {%- if reasoning_content != '' %}
54
+ {{- '<role>ASSISTANT</role>\n' + '<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
55
+ {%- else %}
56
+ {{- '<role>ASSISTANT</role>\n' + content }}
57
+ {%- endif %}
58
  {%- else %}
59
  {{- '<role>ASSISTANT</role>\n' + content }}
60
  {%- endif %}
 
95
  {%- endif %}
96
  {%- endfor %}
97
  {%- if add_generation_prompt %}
98
+ {{- '<role>ASSISTANT</role>' }}
99
  {%- endif %}