sd-inf commited on
Commit
7e86b09
·
verified ·
1 Parent(s): 3c23096

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +3 -3
chat_template.jinja CHANGED
@@ -40,9 +40,9 @@
40
  {%- set reasoning_content = message.reasoning_content %}
41
  {%- else %}
42
  {%- if '</think>' in content %}
43
- {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('')[-1].lstrip('\n') %}
44
- {%- set content = content.split('')[-1].lstrip('\n') %}
45
- {%- endif %}
46
  {%- endif %}
47
  {%- if loop.index0 > ns.last_query_index %}
48
  {%- if loop.last or (not loop.last and reasoning_content) %}
 
40
  {%- set reasoning_content = message.reasoning_content %}
41
  {%- else %}
42
  {%- if '</think>' in content %}
43
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n') %}
44
+ {%- set content = content.split('</think>')[1].lstrip('\n') %}
45
+ {%- endif %}
46
  {%- endif %}
47
  {%- if loop.index0 > ns.last_query_index %}
48
  {%- if loop.last or (not loop.last and reasoning_content) %}