Former-commit-id: dd94fdd69c8f36df80d6d70d63ab7403a0e55d46
This commit is contained in:
hoshi-hiyouga 2024-09-19 16:21:43 +08:00 committed by GitHub
parent a01668bbe8
commit 8fdbaab95d

View File

@ -143,7 +143,6 @@ class ToolFormatter(Formatter):
except json.JSONDecodeError:
raise RuntimeError("Invalid JSON format in tool description: {}".format(content))
@override
def extract(self, content: str) -> Union[str, List["FunctionCall"]]:
return self.tool_utils.tool_extractor(content)