allow longer conversation histories for models with larger context windows

This commit is contained in:
Paul Gauthier 2023-11-27 10:55:36 -08:00
parent 4192e78bcd
commit ec95cd2d76
3 changed files with 12 additions and 1 deletions

View file

@ -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 = []