mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: Add chat_chunks.py file
This commit is contained in:
parent
72fd24e071
commit
07a939e0da
2 changed files with 5 additions and 9 deletions
|
@ -1752,17 +1752,13 @@ class Coder:
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def update_files(self):
|
|
||||||
edits = self.get_edits()
|
|
||||||
dump("get", edits)
|
|
||||||
edits = self.prepare_to_edit(edits)
|
|
||||||
dump("prep", edits)
|
|
||||||
self.apply_edits(edits)
|
|
||||||
return set(edit[0] for edit in edits if edit[0])
|
|
||||||
|
|
||||||
def apply_updates(self):
|
def apply_updates(self):
|
||||||
try:
|
try:
|
||||||
edited = self.update_files()
|
edits = self.get_edits()
|
||||||
|
edits = self.prepare_to_edit(edits)
|
||||||
|
|
||||||
|
edited = set(edit[0] for edit in edits if edit[0])
|
||||||
|
self.apply_edits(edits)
|
||||||
except ValueError as err:
|
except ValueError as err:
|
||||||
self.num_malformed_responses += 1
|
self.num_malformed_responses += 1
|
||||||
|
|
||||||
|
|
0
aider/coders/chat_chunks.py
Normal file
0
aider/coders/chat_chunks.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue