diff --git a/src/llamafactory/data/tool_utils.py b/src/llamafactory/data/tool_utils.py index 4c3ec5ce6..7b77078e8 100644 --- a/src/llamafactory/data/tool_utils.py +++ b/src/llamafactory/data/tool_utils.py @@ -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):