mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +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:
|
if self.add_cache_headers:
|
||||||
chunks.add_cache_control_headers()
|
chunks.add_cache_control_headers()
|
||||||
|
|
||||||
msgs = chunks.all_messages()
|
return chunks
|
||||||
return msgs
|
|
||||||
|
|
||||||
def send_message(self, inp):
|
def send_message(self, inp):
|
||||||
self.cur_messages += [
|
self.cur_messages += [
|
||||||
dict(role="user", content=inp),
|
dict(role="user", content=inp),
|
||||||
]
|
]
|
||||||
|
|
||||||
messages = self.format_messages()
|
chunks = self.format_messages()
|
||||||
|
messages = chunks.all_messages()
|
||||||
|
self.warm_cache(chunks)
|
||||||
|
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
utils.show_messages(messages, functions=self.functions)
|
utils.show_messages(messages, functions=self.functions)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue