pass max_chat_history_tokens into ChatSummary

This commit is contained in:
Paul Gauthier 2024-05-06 09:29:21 -07:00
parent 1747525418
commit 64470955d4

View file

@ -288,9 +288,11 @@ class Coder:
self.verbose,
)
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.max_chat_history_tokens,
max_chat_history_tokens,
)
if not self.done_messages: