Skip to content

Commit a4f8cb0

Browse files
committed
chore(doom): Clean up gptel config and update models
- Remove outdated comments and commented-out model lists - Update default model to claude-opus-4-6 - Update magit model to claude-sonnet-4-6 Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
1 parent e9c0063 commit a4f8cb0

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

common/doom/config.el

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -130,44 +130,25 @@
130130

131131
;; Configure providers
132132
(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.
136133
(gptel-make-openai "OpenAI"
137134
: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"))
146136
(gptel-make-deepseek "DeepSeek"
147137
:stream t
148138
:key (auth-source-pick-first-password :host "api.deepseek.com"))
149139
(gptel-make-gemini "Gemini"
150140
:stream t
151141
:key (auth-source-pick-first-password :host "generativelanguage.googleapis.com"))
152142

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
157144
gptel-backend (gptel-make-anthropic "Anthropic"
158145
: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")))
166147
)
167148

168149
;; Magit integration for gptel
169150
(after! gptel-magit
170-
(setq gptel-magit-model 'gpt-4.1-mini))
151+
(setq gptel-magit-model 'claude-sonnet-4-6))
171152

172153
;; On Arch the claude-acp executable is called claude-code-acp for some reason, so we need to override the default command.
173154
;; TODO: figure out why this is the case and if there's a better solution than hardcoding this.

0 commit comments

Comments
 (0)