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

@ -58,6 +58,7 @@ class EditBlockFunctionCoder(Coder):
]
def __init__(self, code_format, *args, **kwargs):
raise RuntimeError("Deprecated, needs to be refactored to support get_edits/apply_edits")
self.code_format = code_format
if code_format == "string":
@ -91,7 +92,7 @@ class EditBlockFunctionCoder(Coder):
res = json.dumps(args, indent=4)
return res
def update_files(self):
def _update_files(self):
name = self.partial_response_function_call.get("name")
if name and name != "replace_lines":