42
42
" Model selection for Aidermacs."
43
43
:group 'aidermacs )
44
44
45
- (defcustom aidermacs-default-model " sonnet"
46
- " Default AI model to use for aidermacs sessions when not in Architect mode."
45
+ (defcustom aidermacs-default-model (or (getenv " AIDER_MODEL" ) " sonnet" )
46
+ " Default AI model to use for aidermacs sessions when not in Architect mode.
47
+ Respects the `AIDER_MODEL' environment variable if set."
47
48
:type 'string )
48
49
49
50
(defcustom aidermacs-architect-model nil
@@ -52,15 +53,17 @@ If nil, uses the value of `aidermacs-default-model'."
52
53
:type '(choice (const :tag " Use default model" nil )
53
54
(string :tag " Specific model" )))
54
55
55
- (defcustom aidermacs-editor-model nil
56
+ (defcustom aidermacs-editor-model ( getenv " AIDER_EDITOR_MODEL " )
56
57
" Default editing AI model to use for architect mode.
57
- If nil, uses the value of `aidermacs-default-model' ."
58
+ If nil, uses the value of `aidermacs-default-model' .
59
+ Respects the `AIDER_EDITOR_MODEL' environment variable if set."
58
60
:type '(choice (const :tag " Use default model" nil )
59
61
(string :tag " Specific model" )))
60
62
61
- (defcustom aidermacs-weak-model nil
63
+ (defcustom aidermacs-weak-model ( getenv " AIDER_WEAK_MODEL " )
62
64
" Default weak AI model to use.
63
- If nil, uses a model automatically selected based on the default model."
65
+ If nil, uses a model automatically selected based on the default model.
66
+ Respects the `AIDER_WEAK_MODEL' environment variable if set."
64
67
:type '(choice (const :tag " Use default model" nil )
65
68
(string :tag " Specific model" )))
66
69
0 commit comments