This commit is contained in:
Paul Gauthier 2023-07-02 17:52:28 -07:00
parent cbe59b85c2
commit bad642afa4

View file

@ -189,7 +189,7 @@ class Coder:
self.io.tool_output(f"Added {fname} to the chat.") self.io.tool_output(f"Added {fname} to the chat.")
# validate the functions jsonschema # validate the functions jsonschema
if hasattr(self, "functions"): if self.functions:
for function in self.functions: for function in self.functions:
Draft7Validator.check_schema(function) Draft7Validator.check_schema(function)