|
130 | 130 |
|
131 | 131 | ;; Configure providers |
132 | 132 | (gptel-make-gh-copilot "Copilot") |
133 | | - ;; N.B.: the key is the prefix in the list of models in gptel. |
134 | | - ;; There's a default list prefixed by "ChatGPT" which is not controlled by this. |
135 | | - ;; TODO: figure out what happens if we override the name "ChatGPT" here. |
136 | 133 | (gptel-make-openai "OpenAI" |
137 | 134 | :stream t |
138 | | - :key (auth-source-pick-first-password :host "api.openai.com") |
139 | | - ;; :models '((gpt-5 . "gpt-5") |
140 | | - ;; (gpt-5-mini . "gpt-5-mini") |
141 | | - ;; (gpt-4o-mini . "gpt-4o-mini") |
142 | | - ;; (gpt-4o . "gpt-4o") |
143 | | - ;; (gpt-4.1 . "gpt-4.1") |
144 | | - ;; (gpt-4.1-mini . "gpt-4.1-mini")) |
145 | | - ) |
| 135 | + :key (auth-source-pick-first-password :host "api.openai.com")) |
146 | 136 | (gptel-make-deepseek "DeepSeek" |
147 | 137 | :stream t |
148 | 138 | :key (auth-source-pick-first-password :host "api.deepseek.com")) |
149 | 139 | (gptel-make-gemini "Gemini" |
150 | 140 | :stream t |
151 | 141 | :key (auth-source-pick-first-password :host "generativelanguage.googleapis.com")) |
152 | 142 |
|
153 | | - |
154 | | - ;; Set default model. Right now this is very OpenAI-centric, i.e. might change in the future. |
155 | | - ;; TODO: fix comment |
156 | | - (setq gptel-model 'claude-4.6 |
| 143 | + (setq gptel-model 'claude-opus-4-6 |
157 | 144 | gptel-backend (gptel-make-anthropic "Anthropic" |
158 | 145 | :stream t |
159 | | - :key (auth-source-pick-first-password :host "api.anthropic.com") |
160 | | - ;; :models '((claude-2.1 . "claude-2.1") |
161 | | - ;; (claude-2 . "claude-2") |
162 | | - ;; (claude-1.3 . "claude-1.3") |
163 | | - ;; (claude-1 . "claude-1") |
164 | | - ;; (claude-instant-100k . "claude-instant-100k")) |
165 | | - )) |
| 146 | + :key (auth-source-pick-first-password :host "api.anthropic.com"))) |
166 | 147 | ) |
167 | 148 |
|
168 | 149 | ;; Magit integration for gptel |
169 | 150 | (after! gptel-magit |
170 | | - (setq gptel-magit-model 'gpt-4.1-mini)) |
| 151 | + (setq gptel-magit-model 'claude-sonnet-4-6)) |
171 | 152 |
|
172 | 153 | ;; On Arch the claude-acp executable is called claude-code-acp for some reason, so we need to override the default command. |
173 | 154 | ;; TODO: figure out why this is the case and if there's a better solution than hardcoding this. |
|
0 commit comments