[assets] update wechat (#9129)

This commit is contained in:
Yaowei Zheng
2025-09-14 03:05:08 +08:00
committed by GitHub
parent 52488ac974
commit 260b5625c3
3 changed files with 10 additions and 9 deletions

View File

@@ -685,7 +685,9 @@ register_template(
format_system=StringFormatter(slots=["<role>SYSTEM</role>{{content}}<|role_end|>"]),
format_assistant=StringFormatter(slots=["{{content}}<|role_end|>"]),
format_observation=StringFormatter(
slots=["<role>OBSERVATION</role>\n<tool_response>\n{{content}}\n</tool_response><|role_end|><role>ASSISTANT</role>"]
slots=[
"<role>OBSERVATION</role>\n<tool_response>\n{{content}}\n</tool_response><|role_end|><role>ASSISTANT</role>"
]
),
format_function=FunctionFormatter(slots=["{{content}}<|role_end|>"], tool_format="ling"),
format_tools=ToolFormatter(tool_format="ling"),