Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
cc9a31c6
Unverified
Commit
cc9a31c6
authored
Sep 03, 2025
by
南京小汤包
Committed by
GitHub
Sep 02, 2025
Browse files
Update tool_chat_template_deepseekv31.jinja (#9895)
parent
d631290e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/chat_template/tool_chat_template_deepseekv31.jinja
examples/chat_template/tool_chat_template_deepseekv31.jinja
+3
-3
No files found.
examples/chat_template/tool_chat_template_deepseekv31.jinja
View file @
cc9a31c6
...
@@ -43,13 +43,13 @@
...
@@ -43,13 +43,13 @@
{%- for tool in message['tool_calls'] %}
{%- for tool in message['tool_calls'] %}
{%- if not ns.is_first %}
{%- if not ns.is_first %}
{%- if message['content'] is none %}
{%- if message['content'] is none %}
{{'<|tool▁calls▁begin|><|tool▁call▁begin|>'+ tool['function']['name'] + '<|tool▁sep|>' + tool['function']['arguments'] + '<|tool▁call▁end|>'}}
{{'<|tool▁calls▁begin|><|tool▁call▁begin|>'+ tool['function']['name'] + '<|tool▁sep|>' + tool['function']['arguments']
|tojson
+ '<|tool▁call▁end|>'}}
{%- else %}
{%- else %}
{{message['content'] + '<|tool▁calls▁begin|><|tool▁call▁begin|>' + tool['function']['name'] + '<|tool▁sep|>' + tool['function']['arguments'] + '<|tool▁call▁end|>'}}
{{message['content'] + '<|tool▁calls▁begin|><|tool▁call▁begin|>' + tool['function']['name'] + '<|tool▁sep|>' + tool['function']['arguments']
|tojson
+ '<|tool▁call▁end|>'}}
{%- endif %}
{%- endif %}
{%- set ns.is_first = true -%}
{%- set ns.is_first = true -%}
{%- else %}
{%- else %}
{{'<|tool▁call▁begin|>'+ tool['function']['name'] + '<|tool▁sep|>' + tool['function']['arguments'] + '<|tool▁call▁end|>'}}
{{'<|tool▁call▁begin|>'+ tool['function']['name'] + '<|tool▁sep|>' + tool['function']['arguments']
|tojson
+ '<|tool▁call▁end|>'}}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endfor %}
{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}
{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}
...
...
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