refactor: rename warned to warn_setting for clarity

This commit is contained in:
Paul Gauthier (aider) 2025-03-18 12:28:41 -07:00
parent f247927244
commit f6d697ed2b

View file

@ -796,7 +796,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
# Show warnings about unsupported settings after all model settings are fully resolved
if args.check_model_accepts_settings:
warned = False
warn_setting = False
settings_to_check = [
{"arg": args.reasoning_effort, "name": "reasoning_effort"},
{"arg": args.thinking_tokens, "name": "thinking_tokens"},
@ -811,9 +811,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
f"Warning: The model {main_model.name} may not support the '{setting['name']}'"
" setting."
)
warned = True
warn_setting = True
if warned:
if warn_setting:
if not io.confirm_ask(
"Sending unsupported parameters can cause API calls to fail. Continue?"
):