From b1e7e807005fc9be85382c100dc3644cab9d3f50 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 12 Aug 2024 14:06:34 -0700 Subject: [PATCH] fix bug in /token counts for chat history --- aider/commands.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 633239ddf..599d5013d 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -311,7 +311,6 @@ class Commands: # chat history msgs = self.coder.done_messages + self.coder.cur_messages if msgs: - msgs = [dict(role="dummy", content=msg) for msg in msgs] tokens = self.coder.main_model.token_count(msgs) res.append((tokens, "chat history", "use /clear to clear"))