mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
fix: Return chunks instead of messages in format_messages method
This commit is contained in:
parent
b53b1c95d5
commit
e234ba10cd
1 changed files with 4 additions and 3 deletions
|
@ -981,15 +981,16 @@ class Coder:
|
|||
if self.add_cache_headers:
|
||||
chunks.add_cache_control_headers()
|
||||
|
||||
msgs = chunks.all_messages()
|
||||
return msgs
|
||||
return chunks
|
||||
|
||||
def send_message(self, inp):
|
||||
self.cur_messages += [
|
||||
dict(role="user", content=inp),
|
||||
]
|
||||
|
||||
messages = self.format_messages()
|
||||
chunks = self.format_messages()
|
||||
messages = chunks.all_messages()
|
||||
self.warm_cache(chunks)
|
||||
|
||||
if self.verbose:
|
||||
utils.show_messages(messages, functions=self.functions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue