From 463fdb1ed91abed3d8525ff083e81377f1247ae5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 4 Jan 2025 06:19:38 -0800 Subject: [PATCH] refactor: Increase max chat history tokens limit from 4k to 8k --- aider/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/models.py b/aider/models.py index 2ced2dd3c..a596c604d 100644 --- a/aider/models.py +++ b/aider/models.py @@ -921,8 +921,8 @@ class Model(ModelSettings): max_input_tokens = self.info.get("max_input_tokens") or 0 # Calculate max_chat_history_tokens as 1/16th of max_input_tokens, - # with minimum 1k and maximum 4k - self.max_chat_history_tokens = min(max(max_input_tokens // 16, 1024), 4096) + # with minimum 1k and maximum 8k + self.max_chat_history_tokens = min(max(max_input_tokens / 16, 1024), 8192) self.configure_model_settings(model) if weak_model is False: