mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
refactor: Reorder model info output for better readability
This commit is contained in:
parent
0406dda2a6
commit
afcf3e77b5
1 changed files with 5 additions and 4 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue