mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
refactor the jsonschema check into base
This commit is contained in:
parent
ba2c5d05da
commit
cbe59b85c2
4 changed files with 10 additions and 12 deletions
|
@ -1,7 +1,5 @@
|
|||
import json
|
||||
|
||||
from jsonschema import Draft7Validator
|
||||
|
||||
from ..dump import dump # noqa: F401
|
||||
from .base_coder import Coder
|
||||
from .editblock_coder import do_replace
|
||||
|
@ -82,8 +80,6 @@ class EditBlockFunctionCoder(Coder):
|
|||
"updated_lines"
|
||||
] = updated_lines
|
||||
|
||||
Draft7Validator.check_schema(self.functions[0])
|
||||
|
||||
self.gpt_prompts = EditBlockFunctionPrompts()
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue