Update chat_template.jinja

This commit is contained in:
Jeff Green
2026-01-03 13:59:12 +00:00
committed by system
parent 8ca815e970
commit ae6e1b0317

View File

@@ -3,7 +3,7 @@
{%- if messages[0]['role'] == 'system' %} {%- if messages[0]['role'] == 'system' %}
{{- messages[0]['content'] }} {{- messages[0]['content'] }}
{%- else %} {%- else %}
{{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} {{- 'You are Eve, created by Jeff. You are a helpful assistant.' }}
{%- endif %} {%- endif %}
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
{%- for tool in tools %} {%- for tool in tools %}
@@ -15,7 +15,7 @@
{%- if messages[0]['role'] == 'system' %} {%- if messages[0]['role'] == 'system' %}
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
{%- else %} {%- else %}
{{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} {{- '<|im_start|>system\nYou are Eve, created by Jeff. You are a helpful assistant.<|im_end|>\n' }}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- for message in messages %} {%- for message in messages %}