Update chat_template.jinja
Browse files- 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 |
-
|
| 44 |
-
|
| 45 |
-
|
| 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) %}
|