mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-01 03:02:51 +08:00
[data] fix function formatter (#7201)
Co-authored-by: zhangchuanhui <zhangchal@digitalchina.com> Former-commit-id: 194e3bddb25fa0bcc6d8349ce682b537a07a9a6a
This commit is contained in:
parent
113cc3d920
commit
33b4c33279
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user