From 41018d05a8660c606cbcc3287b0812a178ac2a9e Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 10 Jan 2025 14:38:22 -0800 Subject: [PATCH] fix: remove unused max_tokens variable in get_repo_map_tokens --- aider/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/models.py b/aider/models.py index 98a996a86..6271b9ff8 100644 --- a/aider/models.py +++ b/aider/models.py @@ -1183,7 +1183,7 @@ class Model(ModelSettings): if max_inp_tokens: map_tokens = max_inp_tokens / 8 map_tokens = min(map_tokens, 4096) - max_tokens = max(map_tokens, 1024) + map_tokens = max(map_tokens, 1024) return map_tokens