feat: add model name to /tokens command output

This commit is contained in:
Paul Gauthier (aider) 2024-08-09 11:55:52 -03:00
parent f2c7ba3f36
commit df8482abb8

View file

@ -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