Unverified Commit 2cd94dd0 authored by Yiming's avatar Yiming Committed by GitHub
Browse files

tool-call(dsv3): Fixed a parse problem when there are multiple function...

tool-call(dsv3): Fixed a parse problem when there are multiple function definitions in tool_calls (#10209)
parent f5f6b3b4
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
{%- endif %} {%- endif %}
{%- set ns.is_first = true -%} {%- set ns.is_first = true -%}
{%- else %} {%- else %}
{{- '\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\n' + '```json' + '\n' + tool['function']['arguments'] + '\n' + '```' + '<|tool▁call▁end|>'}} {{- '\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\n' + '```json' + '\n' + tool['function']['arguments']|tojson + '\n' + '```' + '<|tool▁call▁end|>'}}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
{{- '<|tool▁calls▁end|><|end▁of▁sentence|>'}} {{- '<|tool▁calls▁end|><|end▁of▁sentence|>'}}
......
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