mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: Use getattr with default for checking main_model.extra_params
This commit is contained in:
parent
7f82a33bf5
commit
9ed8ebab78
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
|
||||
# add --reasoning-effort cli param
|
||||
if args.reasoning_effort is not None:
|
||||
if not hasattr(main_model, "extra_params"):
|
||||
if not getattr(main_model, "extra_params", None):
|
||||
main_model.extra_params = {}
|
||||
if "extra_body" not in main_model.extra_params:
|
||||
main_model.extra_params["extra_body"] = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue