TitanML
/

jamesdborin commited on
Commit
566e087
·
verified ·
1 Parent(s): 5c392d4

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +2 -2
chat_template.jinja CHANGED
@@ -90,7 +90,7 @@ For each function call, output the function name and arguments within the follow
90
  {%- endif %}
91
  {%- if m.content is string -%}
92
  {{- '<tool_response>' + m.content + '</tool_response>' -}}
93
- {%- elif m.content is iterable and m.content is not mapping and m.content and m.content.0.type == "tool_reference" -%}
94
  {{- '<tool_response><tools>\n' -}}
95
  {% for tr in m.content %}
96
  {%- for tool in tools -%}
@@ -103,7 +103,7 @@ For each function call, output the function name and arguments within the follow
103
  {%- endfor -%}
104
  {%- endfor -%}
105
  {{- '</tools></tool_response>' -}}
106
- {%- elif m.content is iterable and m.content is not mapping and m.content and m.content.0 is mapping and m.content.0.output is defined -%}
107
  {%- for tr in m.content -%}
108
  {{- '<tool_response>' + tr.output + '</tool_response>' -}}
109
  {%- endfor -%}
 
90
  {%- endif %}
91
  {%- if m.content is string -%}
92
  {{- '<tool_response>' + m.content + '</tool_response>' -}}
93
+ {%- elif m.content is iterable and m.content is not mapping and m.content and m.content[0]type == "tool_reference" -%}
94
  {{- '<tool_response><tools>\n' -}}
95
  {% for tr in m.content %}
96
  {%- for tool in tools -%}
 
103
  {%- endfor -%}
104
  {%- endfor -%}
105
  {{- '</tools></tool_response>' -}}
106
+ {%- elif m.content is iterable and m.content is not mapping and m.content and m.content[0] is mapping and m.content.0.output is defined -%}
107
  {%- for tr in m.content -%}
108
  {{- '<tool_response>' + tr.output + '</tool_response>' -}}
109
  {%- endfor -%}