From 546a662a30e5b42850e106997c217fb959335859 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sun, 26 Jan 2025 18:51:59 -0800 Subject: [PATCH] refactor: change token limit suggestions from tool_error to tool_output --- aider/coders/base_coder.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index f6c4c3736..1543ad8da 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -1240,11 +1240,10 @@ class Coder: f"\nInput tokens ({input_tokens:,}) exceeds model's" f" {max_input_tokens:,} token limit!" ) - # turn these into tool_output ai! - self.io.tool_error("Try:") - self.io.tool_error("- Use /drop to remove unneeded files from the chat") - self.io.tool_error("- Use /clear to clear the chat history") - self.io.tool_error("- Break your code into smaller files") + self.io.tool_output("Try:") + self.io.tool_output("- Use /drop to remove unneeded files from the chat") + self.io.tool_output("- Use /clear to clear the chat history") + self.io.tool_output("- Break your code into smaller files") # Special warning for Ollama models about context window size if self.main_model.name.startswith(("ollama/", "ollama_chat/")):