From afcf3e77b57102e530161f50e8d01f3ffa3eb482 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 11 Mar 2025 11:42:36 -0700 Subject: [PATCH] refactor: Reorder model info output for better readability --- aider/coders/base_coder.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index d0c61972c..42527018a 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -207,10 +207,6 @@ class Coder: prefix = "Model" output = f"{prefix}: {main_model.name} with {self.edit_format} edit format" - if self.add_cache_headers or main_model.caches_by_default: - output += ", prompt cache" - if main_model.info.get("supports_assistant_prefill"): - output += ", infinite output" # Check for thinking token budget if ( @@ -234,6 +230,11 @@ class Coder: formatted_budget = f"{value:.1f}k" output += f", {formatted_budget} think tokens" + if self.add_cache_headers or main_model.caches_by_default: + output += ", prompt cache" + if main_model.info.get("supports_assistant_prefill"): + output += ", infinite output" + lines.append(output) if self.edit_format == "architect":