mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
refactor: Use warn_setting variable for model setting warnings
This commit is contained in:
parent
afbe9266e7
commit
274c40793f
1 changed files with 5 additions and 5 deletions
|
@ -800,19 +800,19 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
if args.reasoning_effort is not None and (
|
if args.reasoning_effort is not None and (
|
||||||
not main_model.accepts_settings or "reasoning_effort" not in main_model.accepts_settings
|
not main_model.accepts_settings or "reasoning_effort" not in main_model.accepts_settings
|
||||||
):
|
):
|
||||||
# Refactor this to warn_setting = "reasoning_effort"
|
warn_setting = "reasoning_effort"
|
||||||
# Show the warning below by the ask. ai!
|
|
||||||
io.tool_warning(
|
io.tool_warning(
|
||||||
f"Warning: {main_model.name} may not support the 'reasoning_effort'"
|
f"Warning: The model {main_model.name} may not support the '{warn_setting}'"
|
||||||
" setting."
|
" setting."
|
||||||
)
|
)
|
||||||
warned = True
|
warned = True
|
||||||
|
|
||||||
if args.thinking_tokens is not None and (
|
if args.thinking_tokens is not None and (
|
||||||
not main_model.accepts_settings or "thinking_tokens" not in main_model.accepts_settings
|
not main_model.accepts_settings or "thinking_tokens" not in main_model.accepts_settings
|
||||||
):
|
):
|
||||||
|
warn_setting = "thinking_tokens"
|
||||||
io.tool_warning(
|
io.tool_warning(
|
||||||
f"Warning: {main_model.name} may not support the 'thinking_tokens'"
|
f"Warning: The model {main_model.name} may not support the '{warn_setting}'"
|
||||||
" setting."
|
" setting."
|
||||||
)
|
)
|
||||||
warned = True
|
warned = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue