Upload chat_template.jinja with huggingface_hub
Browse files- chat_template.jinja +1 -1
chat_template.jinja
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{%- if tools %}
|
| 2 |
{{- '<|im_start|>system\n' }}
|
| 3 |
-
|
| 4 |
{{- messages[0].content + '\n\n' }}
|
| 5 |
{%- endif %}
|
| 6 |
{{- "# 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>" }}
|
|
|
|
| 1 |
{%- if tools %}
|
| 2 |
{{- '<|im_start|>system\n' }}
|
| 3 |
+
! {%- if messages[0].role == 'system' %}
|
| 4 |
{{- messages[0].content + '\n\n' }}
|
| 5 |
{%- endif %}
|
| 6 |
{{- "# 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>" }}
|