k-l-lambda commited on
Commit
4ae587b
·
1 Parent(s): fea23a2

chat_template.jinja: workaround error of TensorRT-LLM.

Browse files
Files changed (1) hide show
  1. chat_template.jinja +3 -3
chat_template.jinja CHANGED
@@ -24,9 +24,9 @@
24
  '```json\n{"param1": "value1", "param2": "value2"}\n```<|tool▁call▁end|><|tool▁calls▁end|>\n\n'
25
  'Make sure the JSON is valid.'
26
  '## Tools\n\n### Function\n\nYou have the following functions available:\n\n') %}
27
- {% for tool in tools %}
28
- {% set tool_ns.text = tool_ns.text + '- `' + tool['name'] + '`:\n```json\n' + (tool | tojson) + '\n```\n' %}
29
- {% endfor %}
30
  {% set ns.system_prompt = ns.system_prompt + '\n\n' + tool_ns.text %}
31
  {% endif %}
32
 
 
24
  '```json\n{"param1": "value1", "param2": "value2"}\n```<|tool▁call▁end|><|tool▁calls▁end|>\n\n'
25
  'Make sure the JSON is valid.'
26
  '## Tools\n\n### Function\n\nYou have the following functions available:\n\n') %}
27
+ {#% for tool in tools %}
28
+ {#% set tool_ns.text = tool_ns.text + '- `' + tool['name'] + '`:\n```json\n' + (tool | tojson) + '\n```\n' %}
29
+ {% endfor %#}
30
  {% set ns.system_prompt = ns.system_prompt + '\n\n' + tool_ns.text %}
31
  {% endif %}
32