fix: Update model output formatting in base_coder.py

This commit is contained in:
Paul Gauthier 2024-08-18 13:17:26 -07:00 committed by Paul Gauthier (aider)
parent 4d36518de0
commit 53db8cfa82

View file

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