This commit is contained in:
Paul Gauthier 2023-06-21 18:05:49 -07:00
parent 151b7b2811
commit ba6e2eeb63
3 changed files with 49 additions and 21 deletions

View file

@ -20,7 +20,8 @@ class WholeFileCoder(Coder):
else:
self.cur_messages += [dict(role="assistant", content=content)]
def modify_incremental_response(self, resp):
def modify_incremental_response(self):
resp = self.partial_response_content
return self.update_files(resp, mode="diff")
def update_files(self, content, mode="update"):