mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24: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):
|
||||
text = ""
|
||||
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
|
||||
|
||||
def get_ident_mentions(self, text):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue