mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
refac and func update_files
This commit is contained in:
parent
8c1e1c7267
commit
eb062cc504
4 changed files with 35 additions and 10 deletions
|
@ -377,7 +377,7 @@ class Coder:
|
|||
self.cur_messages += [dict(role="assistant", content=content)]
|
||||
return
|
||||
|
||||
edited, edit_error = self.apply_updates(content)
|
||||
edited, edit_error = self.apply_updates()
|
||||
if edit_error:
|
||||
return edit_error
|
||||
|
||||
|
@ -544,7 +544,7 @@ class Coder:
|
|||
md = Markdown(show_resp, style=self.assistant_output_color, code_theme="default")
|
||||
live.update(md)
|
||||
|
||||
def modify_incremental_response(self):
|
||||
def modify_incremental_response(self, final):
|
||||
return self.partial_response_content
|
||||
|
||||
def get_context_from_history(self, history):
|
||||
|
@ -716,9 +716,9 @@ class Coder:
|
|||
def get_addable_relative_files(self):
|
||||
return set(self.get_all_relative_files()) - set(self.get_inchat_relative_files())
|
||||
|
||||
def apply_updates(self, content):
|
||||
def apply_updates(self):
|
||||
try:
|
||||
edited = self.update_files(content)
|
||||
edited = self.update_files()
|
||||
return edited, None
|
||||
except ValueError as err:
|
||||
err = err.args[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue