mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
style: Format code to comply with linter rules
This commit is contained in:
parent
076c38526a
commit
2589c29b1c
2 changed files with 9 additions and 3 deletions
|
@ -185,7 +185,9 @@ def get_parser(default_config_files, git_root):
|
||||||
"--check-model-accepts-settings",
|
"--check-model-accepts-settings",
|
||||||
action=argparse.BooleanOptionalAction,
|
action=argparse.BooleanOptionalAction,
|
||||||
default=True,
|
default=True,
|
||||||
help="Check if model accepts settings like reasoning_effort/thinking_tokens (default: True)",
|
help=(
|
||||||
|
"Check if model accepts settings like reasoning_effort/thinking_tokens (default: True)"
|
||||||
|
),
|
||||||
)
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--max-chat-history-tokens",
|
"--max-chat-history-tokens",
|
||||||
|
|
|
@ -789,7 +789,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
|
|
||||||
# Set reasoning effort if specified
|
# Set reasoning effort if specified
|
||||||
if args.reasoning_effort is not None:
|
if args.reasoning_effort is not None:
|
||||||
if args.check_model_accepts_settings and (not main_model.accepts_settings or "reasoning_effort" not in main_model.accepts_settings):
|
if args.check_model_accepts_settings and (
|
||||||
|
not main_model.accepts_settings or "reasoning_effort" not in main_model.accepts_settings
|
||||||
|
):
|
||||||
io.tool_warning(
|
io.tool_warning(
|
||||||
f"Warning: The model {main_model.name} may not support the 'reasoning_effort'"
|
f"Warning: The model {main_model.name} may not support the 'reasoning_effort'"
|
||||||
" setting."
|
" setting."
|
||||||
|
@ -798,7 +800,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
|
|
||||||
# Set thinking tokens if specified
|
# Set thinking tokens if specified
|
||||||
if args.thinking_tokens is not None:
|
if args.thinking_tokens is not None:
|
||||||
if args.check_model_accepts_settings and (not main_model.accepts_settings or "thinking_tokens" not in main_model.accepts_settings):
|
if args.check_model_accepts_settings and (
|
||||||
|
not main_model.accepts_settings or "thinking_tokens" not in main_model.accepts_settings
|
||||||
|
):
|
||||||
io.tool_warning(
|
io.tool_warning(
|
||||||
f"Warning: The model {main_model.name} may not support the 'thinking_tokens'"
|
f"Warning: The model {main_model.name} may not support the 'thinking_tokens'"
|
||||||
" setting."
|
" setting."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue