From f22ccf619537c1e1ed9486405e82b8b7930e643a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 27 Jun 2023 19:07:45 -0700 Subject: [PATCH] fixed json schema --- aider/coders/editblock_func_coder.py | 38 ++++++++++++---------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/aider/coders/editblock_func_coder.py b/aider/coders/editblock_func_coder.py index 3881f908d..a4b25af3c 100644 --- a/aider/coders/editblock_func_coder.py +++ b/aider/coders/editblock_func_coder.py @@ -26,30 +26,24 @@ class EditBlockFunctionCoder(Coder): edits=dict( type="array", items=dict( - parameters=dict( - type="object", - required=["path", "original_lines", "updated_lines"], - properties=dict( - path=dict( - type="string", - description="Path of file to edit", - ), - original_lines=dict( - type="string", - description=( - ( - "Lines from the original file, including all" - " whitespace, newlines, without skipping any lines" - ), - ), - ), - updated_lines=dict( - type="string", - description=( - "New content to replace the `original_lines` with" - ), + type="object", + required=["path", "original_lines", "updated_lines"], + properties=dict( + path=dict( + type="string", + description="Path of file to edit", + ), + original_lines=dict( + type="string", + description=( + "Lines from the original file, including all" + " whitespace, newlines, without skipping any lines" ), ), + updated_lines=dict( + type="string", + description="New content to replace the `original_lines` with", + ), ), ), ),