Update chat_template.jinja
Browse files- chat_template.jinja +2 -2
chat_template.jinja
CHANGED
|
@@ -32,10 +32,10 @@ For each function call, output the function name and arguments within the follow
|
|
| 32 |
{%- set ns = namespace(last_user_index=-1) %}
|
| 33 |
{%- for m in messages %}
|
| 34 |
{%- if m.role == 'user' %}
|
| 35 |
-
{% set ns.last_user_index = loop.index0 -%}
|
| 36 |
{%- endif %}
|
| 37 |
{%- endfor %}
|
| 38 |
-
{% for m in messages %}
|
| 39 |
{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}
|
| 40 |
{%- elif m.role == 'assistant' -%}
|
| 41 |
<|assistant|>
|
|
|
|
| 32 |
{%- set ns = namespace(last_user_index=-1) %}
|
| 33 |
{%- for m in messages %}
|
| 34 |
{%- if m.role == 'user' %}
|
| 35 |
+
{%- set ns.last_user_index = loop.index0 -%}
|
| 36 |
{%- endif %}
|
| 37 |
{%- endfor %}
|
| 38 |
+
{%- for m in messages -%}
|
| 39 |
{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}
|
| 40 |
{%- elif m.role == 'assistant' -%}
|
| 41 |
<|assistant|>
|