style: Format code with linter and improve readability

This commit is contained in:
Paul Gauthier (aider) 2025-03-11 11:35:31 -07:00
parent 5608db0892
commit c38cdef220

View file

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