From df8482abb80102060a1dedcf6ba51786e108b96f Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 Aug 2024 11:55:52 -0300 Subject: [PATCH] feat: add model name to /tokens command output --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index ab788153d..b9f1e0512 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -329,7 +329,7 @@ class Commands: tokens = self.coder.main_model.token_count(content) res.append((tokens, f"{relative_fname}", "use /drop to drop from chat")) - self.io.tool_output("Approximate context window usage, in tokens:") + self.io.tool_output(f"Approximate context window usage for {self.coder.main_model.name}, in tokens:") self.io.tool_output() width = 8