mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
be paranoid to avoid self.partial_response_content = None
This commit is contained in:
parent
5f4fc06abc
commit
d4ae735d43
1 changed files with 3 additions and 3 deletions
|
@ -1292,7 +1292,7 @@ class Coder:
|
|||
show_func_err = func_err
|
||||
|
||||
try:
|
||||
self.partial_response_content = completion.choices[0].message.content
|
||||
self.partial_response_content = completion.choices[0].message.content or ""
|
||||
except AttributeError as content_err:
|
||||
show_content_err = content_err
|
||||
|
||||
|
@ -1408,8 +1408,8 @@ class Coder:
|
|||
)
|
||||
|
||||
def get_multi_response_content(self, final=False):
|
||||
cur = self.multi_response_content
|
||||
new = self.partial_response_content
|
||||
cur = self.multi_response_content or ""
|
||||
new = self.partial_response_content or ""
|
||||
|
||||
if new.rstrip() != new and not final:
|
||||
new = new.rstrip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue