Update tool_chat_template_deepseekv31.jinja (#9895)
This commit is contained in:
@@ -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|>'}}
|
||||||
|
|||||||
Reference in New Issue
Block a user