danielhanchen commited on
Commit
ac705d1
·
verified ·
1 Parent(s): 439d5f5

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -6
chat_template.jinja CHANGED
@@ -15,12 +15,7 @@
15
 
16
  {#- Adapted from https://github.com/sgl-project/sglang/blob/main/examples/chat_template/tool_chat_template_deepseekr1.jinja #}
17
  {%- if tools is defined and tools is not none %}
18
- {%- set tool_ns = namespace(text='You are a helpful assistant with tool calling capabilities. '
19
- 'When a tool call is needed, you MUST use the following format to issue the call:\n'
20
- '<|tool▁calls▁begin|><|tool▁call▁begin|>function<|tool▁sep|>FUNCTION_NAME\n'
21
- '```json\n{"param1": "value1", "param2": "value2"}\n```<|tool▁call▁end|><|tool▁calls▁end|>\n\n'
22
- 'Make sure the JSON is valid.'
23
- '## Tools\n\n### Function\n\nYou have the following functions available:\n\n') %}
24
  {%- for tool in tools %}
25
  {%- set tool_ns.text = tool_ns.text + '\n```json\n' + (tool | tojson) + '\n```\n' %}
26
  {%- endfor %}
 
15
 
16
  {#- Adapted from https://github.com/sgl-project/sglang/blob/main/examples/chat_template/tool_chat_template_deepseekr1.jinja #}
17
  {%- if tools is defined and tools is not none %}
18
+ {%- set tool_ns = namespace(text='You are a helpful assistant with tool calling capabilities. ' + 'When a tool call is needed, you MUST use the following format to issue the call:\n' + '<|tool▁calls▁begin|><|tool▁call▁begin|>function<|tool▁sep|>FUNCTION_NAME\n' + '```json\n{"param1": "value1", "param2": "value2"}\n```<|tool▁call▁end|><|tool▁calls▁end|>\n\n' + 'Make sure the JSON is valid.' + '## Tools\n\n### Function\n\nYou have the following functions available:\n\n') %}
 
 
 
 
 
19
  {%- for tool in tools %}
20
  {%- set tool_ns.text = tool_ns.text + '\n```json\n' + (tool | tojson) + '\n```\n' %}
21
  {%- endfor %}