Dicksonycx commited on
Commit
97d0156
·
verified ·
1 Parent(s): 50d7fa1

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +3 -1
chat_template.jinja CHANGED
@@ -1,7 +1,9 @@
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>" }}
7
  {%- for tool in tools %}
 
1
  {%- if tools %}
2
  {{- '<|im_start|>system\n' }}
3
  {%- if messages[0].role == 'system' %}
4
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
5
+ {%- else %}
6
+ {{- '<|im_start|>system\nYou are a helpful mathematical reasoning assistant.\nSolve the problem step by step and express your final answer using \\boxed{}.\n<|im_end|>\n' }}
7
  {%- endif %}
8
  {{- "# 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>" }}
9
  {%- for tool in tools %}