fix: added "\n" to qwen25 tool parser structural tags (#6631)
This commit is contained in:
@@ -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>",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user