mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06: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 os
|
||||
|
||||
from jsonschema import Draft7Validator
|
||||
|
||||
from aider import diffs
|
||||
|
||||
from ..dump import dump # noqa: F401
|
||||
|
@ -35,8 +33,6 @@ class SingleWholeFileFunctionCoder(Coder):
|
|||
]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
Draft7Validator.check_schema(self.functions[0])
|
||||
|
||||
self.gpt_prompts = SingleWholeFileFunctionPrompts()
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue