Former-commit-id: bb57478366a70a0871af30ab31c890f471e27ff4
This commit is contained in:
hiyouga
2024-06-25 01:15:19 +08:00
parent c6b17ebc20
commit 135bfbf7c1
8 changed files with 23 additions and 18 deletions

View File

@@ -216,7 +216,7 @@ class ToolFormatter(Formatter):
self._tool_formatter = glm4_tool_formatter
self._tool_extractor = glm4_tool_extractor
else:
raise ValueError("Tool format was not found.")
raise NotImplementedError("Tool format {} was not found.".format(self.tool_format))
def apply(self, **kwargs) -> SLOTS:
content = kwargs.pop("content")