mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
handle not live case
This commit is contained in:
parent
f9086e66d3
commit
8c1e1c7267
2 changed files with 2 additions and 2 deletions
|
@ -532,8 +532,8 @@ class Coder:
|
|||
sys.stdout.write(text)
|
||||
sys.stdout.flush()
|
||||
finally:
|
||||
self.live_incremental_response(live, True)
|
||||
if live:
|
||||
self.live_incremental_response(live, True)
|
||||
live.stop()
|
||||
|
||||
def live_incremental_response(self, live, final):
|
||||
|
|
|
@ -20,7 +20,7 @@ class WholeFileCoder(Coder):
|
|||
else:
|
||||
self.cur_messages += [dict(role="assistant", content=content)]
|
||||
|
||||
def modify_incremental_response(self):
|
||||
def modify_incremental_response(self, final):
|
||||
resp = self.partial_response_content
|
||||
return self.update_files(resp, mode="diff")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue