"examples/multigpu/vscode:/vscode.git/clone" did not exist on "2da6acef67d69440af6854534ad32416d97f5729"
Unverified Commit 755a3661 authored by Shi Shuai's avatar Shi Shuai Committed by GitHub
Browse files

fix: added "\n" to qwen25 tool parser structural tags (#6631)

parent 79a39ac0
......@@ -106,8 +106,8 @@ class Qwen25Detector(BaseFormatDetector):
def structure_info(self) -> _GetInfoFunc:
# TODO: Update the begin and end tokens with '\n' if necessary
return lambda name: StructureInfo(
begin='<tool_call>{"name":"' + name + '", "arguments":',
end="}</tool_call>",
begin='<tool_call>\n{"name":"' + name + '", "arguments":',
end="}\n</tool_call>",
trigger="<tool_call>",
)
......
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