mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
feat: Add reasoning effort display in get_announcements output
This commit is contained in:
parent
afcf3e77b5
commit
cc84f590fe
1 changed files with 9 additions and 0 deletions
|
@ -229,6 +229,15 @@ class Coder:
|
||||||
else:
|
else:
|
||||||
formatted_budget = f"{value:.1f}k"
|
formatted_budget = f"{value:.1f}k"
|
||||||
output += f", {formatted_budget} think tokens"
|
output += f", {formatted_budget} think tokens"
|
||||||
|
|
||||||
|
# Check for reasoning effort
|
||||||
|
if (
|
||||||
|
main_model.extra_params
|
||||||
|
and "extra_body" in main_model.extra_params
|
||||||
|
and "reasoning_effort" in main_model.extra_params["extra_body"]
|
||||||
|
):
|
||||||
|
reasoning_effort = main_model.extra_params["extra_body"]["reasoning_effort"]
|
||||||
|
output += f", reasoning {reasoning_effort}"
|
||||||
|
|
||||||
if self.add_cache_headers or main_model.caches_by_default:
|
if self.add_cache_headers or main_model.caches_by_default:
|
||||||
output += ", prompt cache"
|
output += ", prompt cache"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue