From 963420d16fc62d4a6e4a29b428d1cff1f7637ee2 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 30 Jul 2024 12:04:31 -0300 Subject: [PATCH] Initialize ChatSummary with main and weak models --- aider/coders/base_coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 7032e5b8f..497180c3d 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -328,7 +328,7 @@ class Coder: if max_chat_history_tokens is None: max_chat_history_tokens = self.main_model.max_chat_history_tokens self.summarizer = ChatSummary( - self.main_model.weak_model, + [self.main_model, self.main_model.weak_model], max_chat_history_tokens, )