mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
summarize as many messages as will fit into the summarizer context
This commit is contained in:
parent
e51e0219ee
commit
e61857ef09
2 changed files with 23 additions and 10 deletions
|
@ -295,13 +295,14 @@ class Coder:
|
|||
max_chat_history_tokens,
|
||||
)
|
||||
|
||||
self.summarizer_thread = None
|
||||
self.summarized_done_messages = []
|
||||
|
||||
if not self.done_messages:
|
||||
history_md = self.io.read_text(self.io.chat_history_file)
|
||||
if history_md:
|
||||
self.done_messages = self.summarizer.summarize_chat_history_markdown(history_md)
|
||||
|
||||
self.summarizer_thread = None
|
||||
self.summarized_done_messages = []
|
||||
self.done_messages = self.summarizer.split_chat_history_markdown(history_md)
|
||||
self.summarize_start()
|
||||
|
||||
# validate the functions jsonschema
|
||||
if self.functions:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue