mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
allow longer conversation histories for models with larger context windows
This commit is contained in:
parent
4192e78bcd
commit
ec95cd2d76
3 changed files with 12 additions and 1 deletions
|
@ -189,7 +189,11 @@ class Coder:
|
|||
for fname in self.get_inchat_relative_files():
|
||||
self.io.tool_output(f"Added {fname} to the chat.")
|
||||
|
||||
self.summarizer = ChatSummary(models.Model.weak_model())
|
||||
self.summarizer = ChatSummary(
|
||||
models.Model.weak_model(),
|
||||
self.main_model.max_chat_history_tokens,
|
||||
)
|
||||
|
||||
self.summarizer_thread = None
|
||||
self.summarized_done_messages = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue