From bad642afa4a249cb9d89b096cc80ff9c9d09bf26 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 2 Jul 2023 17:52:28 -0700 Subject: [PATCH] bugfix --- aider/coders/base_coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 8b40ff9dc..0987c9a84 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -189,7 +189,7 @@ class Coder: self.io.tool_output(f"Added {fname} to the chat.") # validate the functions jsonschema - if hasattr(self, "functions"): + if self.functions: for function in self.functions: Draft7Validator.check_schema(function)