TymofiiNasobko commited on
Commit
d0106eb
·
verified ·
1 Parent(s): 88f5353
Files changed (1) hide show
  1. chat_template.jinja +9 -8
chat_template.jinja CHANGED
@@ -13,18 +13,19 @@
13
  ' + '
14
  ' -}}
15
  {%- endif -%}
 
 
16
  {%- endif -%}
17
- {{- "# Tools
18
-
19
  You may call one or more functions to assist with the user query.
20
-
21
  You are provided with function signatures within <tools></tools> XML tags:
22
- <tools>" -}}
23
- {%- for tool in tools -%}
24
- {{- "
25
- " -}}
26
- {{- tool | tojson -}}
27
  {%- endfor -%}
 
 
28
  {{- '<end_of_turn>' + '
29
  ' -}}
30
  {%- elif messages[0]['role'] == "system" -%}
 
13
  ' + '
14
  ' -}}
15
  {%- endif -%}
16
+ {%- else -%}
17
+ {%- set loop_messages = messages -%}
18
  {%- endif -%}
19
+ {{-"# Tools
 
20
  You may call one or more functions to assist with the user query.
 
21
  You are provided with function signatures within <tools></tools> XML tags:
22
+ <tools>"-}}
23
+ {%- for tool in tools -%}
24
+ {{- "\n" -}}
25
+ {{- tool | tojson -}}
 
26
  {%- endfor -%}
27
+ {{-'
28
+ ' + "</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>" -}}
29
  {{- '<end_of_turn>' + '
30
  ' -}}
31
  {%- elif messages[0]['role'] == "system" -%}