[Bugfix] Fix Hermes tool call chat template bug (#8256)
Co-authored-by: Kyle Mistele <kyle@constellate.ai>
This commit is contained in:
parent
12dd715807
commit
41e95c5247
@ -97,12 +97,13 @@
|
|||||||
{{- '{' }}
|
{{- '{' }}
|
||||||
{{- '"name": "' }}
|
{{- '"name": "' }}
|
||||||
{{- tool_call.name }}
|
{{- tool_call.name }}
|
||||||
{{- '"}' }}
|
{{- '"' }}
|
||||||
{{- ', ' }}
|
|
||||||
{%- if tool_call.arguments is defined %}
|
{%- if tool_call.arguments is defined %}
|
||||||
|
{{- ', ' }}
|
||||||
{{- '"arguments": ' }}
|
{{- '"arguments": ' }}
|
||||||
{{- tool_call.arguments|tojson }}
|
{{- tool_call.arguments|tojson }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{{- '}' }}
|
||||||
{{- '\n</tool_call>' }}
|
{{- '\n</tool_call>' }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{{- '<|im_end|>\n' }}
|
{{- '<|im_end|>\n' }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user