mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-15 11:20:35 +08:00
@@ -143,7 +143,6 @@ class ToolFormatter(Formatter):
|
|||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
raise RuntimeError("Invalid JSON format in tool description: {}".format(content))
|
raise RuntimeError("Invalid JSON format in tool description: {}".format(content))
|
||||||
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def extract(self, content: str) -> Union[str, List["FunctionCall"]]:
|
def extract(self, content: str) -> Union[str, List["FunctionCall"]]:
|
||||||
return self.tool_utils.tool_extractor(content)
|
return self.tool_utils.tool_extractor(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user