mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
style: Remove trailing whitespace and format confirm_ask call
This commit is contained in:
parent
ed8ace7884
commit
195ed3e6b6
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue