mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-16 08:38:09 +08:00
lint
Former-commit-id: dd94fdd69c8f36df80d6d70d63ab7403a0e55d46
This commit is contained in:
parent
a01668bbe8
commit
8fdbaab95d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user