Removed support for func based coders

This commit is contained in:
Paul Gauthier 2023-08-17 11:19:49 -07:00
parent 3401395e61
commit fbc4a49c24
4 changed files with 8 additions and 18 deletions

View file

@ -44,6 +44,8 @@ class WholeFileFunctionCoder(Coder):
]
def __init__(self, *args, **kwargs):
raise RuntimeError("Deprecated, needs to be refactored to support get_edits/apply_edits")
self.gpt_prompts = WholeFileFunctionPrompts()
super().__init__(*args, **kwargs)
@ -105,7 +107,7 @@ class WholeFileFunctionCoder(Coder):
return "\n".join(show_diff)
def update_files(self):
def _update_files(self):
name = self.partial_response_function_call.get("name")
if name and name != "write_file":
raise ValueError(f'Unknown function_call name="{name}", use name="write_file"')