admin管理员组

文章数量:1130349

原始 chat_template:
{%- if tools %}
{ {- ‘<|im_start|>system\n’ }}
{%- if messages[0][‘role’] == ‘system’ %}
{ {- messages[0][‘content’] }}
{%- else %}
{ {- ‘You are Qwen, created by Alibaba Cloud. You are a helpful assistant.’ }}
{%- endif %}
{ {- “\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n” }}
{%- for tool in tools %}
{ {- “\n” }}
{ {- tool | tojson }}
{%- endfor %}
{ {- “\n\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{“name”: , “arguments”: }\n</tool_call&

原始 chat_template:
{%- if tools %}
{ {- ‘<|im_start|>system\n’ }}
{%- if messages[0][‘role’] == ‘system’ %}
{ {- messages[0][‘content’] }}
{%- else %}
{ {- ‘You are Qwen, created by Alibaba Cloud. You are a helpful assistant.’ }}
{%- endif %}
{ {- “\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n” }}
{%- for tool in tools %}
{ {- “\n” }}
{ {- tool | tojson }}
{%- endfor %}
{ {- “\n\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{“name”: , “arguments”: }\n</tool_call&

本文标签: 模型区别模板QwenUser