[data] fix function formatter (#7201)

Co-authored-by: zhangchuanhui <zhangchal@digitalchina.com>
This commit is contained in:
ZhangChuanhui
2025-03-07 15:17:23 +08:00
committed by GitHub
parent bd17223559
commit 194e3bddb2

View File

@@ -121,7 +121,7 @@ class FunctionFormatter(StringFormatter):
function_str = self.tool_utils.function_formatter(functions)
if thought:
function_str = thought.group(1) + function_str
function_str = thought.group(0) + function_str
return super().apply(content=function_str)