danielhanchen commited on
Commit
d0e64a8
·
verified ·
1 Parent(s): fdaee3f

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -1
chat_template.jinja CHANGED
@@ -3,7 +3,7 @@
3
  {%- set tools = custom_tools %}
4
  {%- endif %}
5
  {%- if tools is defined and tools %}
6
- {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %}
7
  {%- else %}
8
  {%- set tools = none %}
9
  {%- endif %}
 
3
  {%- set tools = custom_tools %}
4
  {%- endif %}
5
  {%- if tools is defined and tools %}
6
+ {%- set tool_definition = (tool_definition|string) + ((tools | tojson(indent=4))|string) %}
7
  {%- else %}
8
  {%- set tools = none %}
9
  {%- endif %}