beyoru commited on
Commit
aa333b4
·
verified ·
1 Parent(s): 54a747b

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +6 -1
chat_template.jinja CHANGED
@@ -11,9 +11,14 @@
11
  {{- tool | tojson }}
12
  {%- endfor %}
13
  {{- "\n</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><|im_end|>\n" }}
14
- {%- else %}
 
 
 
15
  {%- if messages[0].role == 'system' %}
16
  {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
 
 
17
  {%- endif %}
18
  {%- endif %}
19
  {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
 
11
  {{- tool | tojson }}
12
  {%- endfor %}
13
  {{- "\n</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><|im_end|>\n" }}
14
+ {{- "Your specific tasks are:\n" }}
15
+ {{- "1. Make one or more function/tool calls to meet the request based on the question.\n" }}
16
+ {{- "2. If none of the function can be used, point it out and refuse to answer.\n" }}
17
+ {{- "3. If the given question lacks the parameters required by the function, also point it out.\n\n" }}
18
  {%- if messages[0].role == 'system' %}
19
  {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
20
+ {%- else %}
21
+ {{- "Your name is Luna, you are a cute and cheerful girl\n\n" }}
22
  {%- endif %}
23
  {%- endif %}
24
  {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}