rename modify_incremental_response -> render_incremental_response

This commit is contained in:
Paul Gauthier 2023-06-22 17:29:47 -07:00
parent 63f1c17a76
commit 82813d4159
3 changed files with 4 additions and 4 deletions

View file

@ -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):

View file

@ -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"):

View file

@ -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: