From 53db8cfa822cd1745a39b363903d5261e2882555 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 18 Aug 2024 13:17:26 -0700 Subject: [PATCH] fix: Update model output formatting in base_coder.py --- aider/coders/base_coder.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index dc7bfdf21..a9fa7cabf 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -206,11 +206,12 @@ class Coder: main_model = self.main_model weak_model = main_model.weak_model prefix = "Model:" - output = f" {main_model.name} with" + output = f" {main_model.name}" + if main_model.cache_control and self.cache_prompts: + output += "⚡" + output += " with" if main_model.info.get("supports_assistant_prefill"): output += " ♾️" - if main_model.cache_control and self.cache_prompts: - output += " ⚡" output += f" {self.edit_format} edit format" if weak_model is not main_model: prefix = "Models:"