mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
style: Format code with linter and improve readability
This commit is contained in:
parent
5608db0892
commit
c38cdef220
1 changed files with 7 additions and 5 deletions
|
@ -213,9 +213,11 @@ class Coder:
|
|||
output += ", infinite output"
|
||||
|
||||
# Check for thinking token budget
|
||||
if (main_model.extra_params and
|
||||
"thinking" in main_model.extra_params and
|
||||
"budget_tokens" in main_model.extra_params["thinking"]):
|
||||
if (
|
||||
main_model.extra_params
|
||||
and "thinking" in main_model.extra_params
|
||||
and "budget_tokens" in main_model.extra_params["thinking"]
|
||||
):
|
||||
budget = main_model.extra_params["thinking"]["budget_tokens"]
|
||||
# Format as xx.yK for thousands, xx.yM for millions
|
||||
if budget >= 1000000:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue