From 195ed3e6b6b74b2fcf8aee89276efd407fbd6a1c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 18 Mar 2025 12:24:13 -0700 Subject: [PATCH] style: Remove trailing whitespace and format confirm_ask call --- aider/main.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/aider/main.py b/aider/main.py index 99e9c60ed..dc3206f96 100644 --- a/aider/main.py +++ b/aider/main.py @@ -790,10 +790,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F # Set reasoning effort and thinking tokens if specified if args.reasoning_effort is not None: main_model.set_reasoning_effort(args.reasoning_effort) - + if args.thinking_tokens is not None: main_model.set_thinking_tokens(args.thinking_tokens) - + # Show warnings about unsupported settings after all model settings are fully resolved if args.check_model_accepts_settings: warned = False @@ -805,7 +805,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F " setting." ) warned = True - + if args.thinking_tokens is not None and ( not main_model.accepts_settings or "thinking_tokens" not in main_model.accepts_settings ): @@ -814,9 +814,11 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F " setting." ) warned = True - + if warned: - if not io.confirm_ask("Sending unsupported parameters can cause API calls to fail. Continue anyway?"): + if not io.confirm_ask( + "Sending unsupported parameters can cause API calls to fail. Continue anyway?" + ): analytics.event("exit", reason="User canceled after parameter warning") return 1