mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 12:14:59 +00:00
Account for None type content messages in tools
This commit is contained in:
parent
99bec73f2e
commit
10ea9baad6
1 changed files with 4 additions and 1 deletions
|
@ -654,7 +654,10 @@ class Coder:
|
||||||
def get_cur_message_text(self):
|
def get_cur_message_text(self):
|
||||||
text = ""
|
text = ""
|
||||||
for msg in self.cur_messages:
|
for msg in self.cur_messages:
|
||||||
text += msg["content"] + "\n"
|
# For some models the content is None if the message
|
||||||
|
# contains tool calls.
|
||||||
|
content = msg["content"] or ""
|
||||||
|
text += content + "\n"
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def get_ident_mentions(self, text):
|
def get_ident_mentions(self, text):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue