mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
feat: Add model setting validation for reasoning features
This commit is contained in:
parent
46863b470c
commit
77101a96a1
2 changed files with 15 additions and 1 deletions
|
@ -789,10 +789,18 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
|
||||
# Set reasoning effort if specified
|
||||
if args.reasoning_effort is not None:
|
||||
if main_model.accepts_settings and "reasoning_effort" not in main_model.accepts_settings:
|
||||
io.tool_warning(
|
||||
f"Warning: The model {main_model.name} may not support the 'reasoning_effort' setting."
|
||||
)
|
||||
main_model.set_reasoning_effort(args.reasoning_effort)
|
||||
|
||||
# Set thinking tokens if specified
|
||||
if args.thinking_tokens is not None:
|
||||
if main_model.accepts_settings and "thinking_tokens" not in main_model.accepts_settings:
|
||||
io.tool_warning(
|
||||
f"Warning: The model {main_model.name} may not support the 'thinking_tokens' setting."
|
||||
)
|
||||
main_model.set_thinking_tokens(args.thinking_tokens)
|
||||
|
||||
if args.copy_paste and args.edit_format is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue