Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
41e95c52
Unverified
Commit
41e95c52
authored
Sep 06, 2024
by
Kyle Mistele
Committed by
GitHub
Sep 07, 2024
Browse files
[Bugfix] Fix Hermes tool call chat template bug (#8256)
Co-authored-by:
Kyle Mistele
<
kyle@constellate.ai
>
parent
12dd7158
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
examples/tool_chat_template_hermes.jinja
examples/tool_chat_template_hermes.jinja
+16
-15
No files found.
examples/tool_chat_template_hermes.jinja
View file @
41e95c52
...
@@ -97,12 +97,13 @@
...
@@ -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' }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment