mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-04-21 20:36:02 +08:00
[data] fix SeedToolUtils.tool_extractor returns content when no tool calls found (#10408)
Signed-off-by: Cocoon-Break <54054995+kuishou68@users.noreply.github.com>
This commit is contained in:
@@ -758,7 +758,7 @@ class SeedToolUtils(ToolUtils):
|
||||
|
||||
results.append(FunctionCall(func_name.strip(), json.dumps(args_dict, ensure_ascii=False)))
|
||||
|
||||
return results
|
||||
return results if results else content
|
||||
|
||||
|
||||
class LingToolUtils(QwenToolUtils):
|
||||
|
||||
Reference in New Issue
Block a user