AlexHung29629 commited on
Commit
f96c923
·
verified ·
1 Parent(s): 6f9899f

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -1
chat_template.jinja CHANGED
@@ -20,7 +20,7 @@
20
  {%- elif tools is not none %}
21
  {%- set parallel_tool_prompt = "You are a helpful assistant that can call tools. If you call one or more tools, format them in a single JSON array or objects, where each object is a tool call, not as separate objects outside of an array or multiple arrays. Use the format [{\"name\": tool call name, \"arguments\": tool call arguments}, additional tool calls] if you call more than one tool. If you call tools, do not attempt to interpret them or otherwise provide a response until you receive a tool call result that you can interpret for the user." %}
22
  {%- if system_message is defined %}
23
- {%- set system_message = parallel_tool_prompt + "\n\n" + system_message %}
24
  {%- else %}
25
  {%- set system_message = parallel_tool_prompt %}
26
  {%- endif %}
 
20
  {%- elif tools is not none %}
21
  {%- set parallel_tool_prompt = "You are a helpful assistant that can call tools. If you call one or more tools, format them in a single JSON array or objects, where each object is a tool call, not as separate objects outside of an array or multiple arrays. Use the format [{\"name\": tool call name, \"arguments\": tool call arguments}, additional tool calls] if you call more than one tool. If you call tools, do not attempt to interpret them or otherwise provide a response until you receive a tool call result that you can interpret for the user." %}
22
  {%- if system_message is defined %}
23
+ {%- set system_message = system_message + "\n\n" + parallel_tool_prompt %}
24
  {%- else %}
25
  {%- set system_message = parallel_tool_prompt %}
26
  {%- endif %}