mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
rename modify_incremental_response -> render_incremental_response
This commit is contained in:
parent
63f1c17a76
commit
82813d4159
3 changed files with 4 additions and 4 deletions
|
@ -544,14 +544,14 @@ class Coder:
|
|||
live.stop()
|
||||
|
||||
def live_incremental_response(self, live, final):
|
||||
show_resp = self.modify_incremental_response(final)
|
||||
show_resp = self.render_incremental_response(final)
|
||||
if not show_resp:
|
||||
return
|
||||
|
||||
md = Markdown(show_resp, style=self.assistant_output_color, code_theme="default")
|
||||
live.update(md)
|
||||
|
||||
def modify_incremental_response(self, final):
|
||||
def render_incremental_response(self, final):
|
||||
return self.partial_response_content
|
||||
|
||||
def get_context_from_history(self, history):
|
||||
|
|
|
@ -20,7 +20,7 @@ class WholeFileCoder(Coder):
|
|||
else:
|
||||
self.cur_messages += [dict(role="assistant", content=content)]
|
||||
|
||||
def modify_incremental_response(self, final):
|
||||
def render_incremental_response(self, final):
|
||||
return self.update_files(mode="diff")
|
||||
|
||||
def update_files(self, mode="update"):
|
||||
|
|
|
@ -57,7 +57,7 @@ class WholeFileFunctionCoder(Coder):
|
|||
else:
|
||||
self.cur_messages += [dict(role="assistant", content=content)]
|
||||
|
||||
def modify_incremental_response(self, final=False):
|
||||
def render_incremental_response(self, final=False):
|
||||
args = self.parse_partial_args()
|
||||
|
||||
if not args:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue