Unverified Commit 41e95c52 authored by Kyle Mistele's avatar Kyle Mistele Committed by GitHub
Browse files

[Bugfix] Fix Hermes tool call chat template bug (#8256)


Co-authored-by: default avatarKyle Mistele <kyle@constellate.ai>
parent 12dd7158
......@@ -97,12 +97,13 @@
{{- '{' }}
{{- '"name": "' }}
{{- tool_call.name }}
{{- '"}' }}
{{- ', ' }}
{{- '"' }}
{%- if tool_call.arguments is defined %}
{{- ', ' }}
{{- '"arguments": ' }}
{{- tool_call.arguments|tojson }}
{%- endif %}
{{- '}' }}
{{- '\n</tool_call>' }}
{%- endfor %}
{{- '<|im_end|>\n' }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment