diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 23:51:29 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 23:51:29 -0500 |
| commit | 68e7bcd8ebbf2963c7b169e7941f01cfd20589ef (patch) | |
| tree | 98c00ee209e8e1358091077fc813849a9d0e04c2 /modules | |
| parent | 377713aac76a994cfd982b3d87ddeac98d7c6e99 (diff) | |
| download | dotemacs-68e7bcd8ebbf2963c7b169e7941f01cfd20589ef.tar.gz dotemacs-68e7bcd8ebbf2963c7b169e7941f01cfd20589ef.zip | |
chore(ai-config): refresh gptel model menus
Anthropic: bump Opus 4.6 → 4.7 (current frontier). Sonnet 4.6
and Haiku 4.5 stay -- still current. Default `gptel-model' setq
also bumped to claude-opus-4-7 in both places it was set.
OpenAI: drop the cohort retired from ChatGPT on 2026-02-13
(gpt-4o, gpt-5 original, gpt-4.1, o1). Replace with the current
lineup: gpt-5.5 (flagship), gpt-5.4-mini (fast/cheap), o3
(reasoning). All three are documented at
developers.openai.com/api/docs/models/.
Drive-by: stale docstring example in cj/gptel--current-model-selection
bumped to match.
gptel's bundled :models list only knows up to May-2025 IDs but
gptel-make-anthropic / gptel-make-openai accept any string and pass
it straight to the API, so newer names work without a gptel upgrade.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/ai-config.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/ai-config.el b/modules/ai-config.el index 98e738ea..92992aa7 100644 --- a/modules/ai-config.el +++ b/modules/ai-config.el @@ -121,7 +121,7 @@ Call this only after loading `gptel' so the backend constructors exist." "Claude" :key (cj/anthropic-api-key) :models '( - "claude-opus-4-6" + "claude-opus-4-7" "claude-sonnet-4-6" "claude-haiku-4-5-20251001" ) @@ -132,16 +132,15 @@ Call this only after loading `gptel' so the backend constructors exist." "ChatGPT" :key (cj/openai-api-key) :models '( - "gpt-4o" - "gpt-5" - "gpt-4.1" - "o1" + "gpt-5.5" + "gpt-5.4-mini" + "o3" ) :stream t))) ;; Set default backend and model (unless gptel-backend (setq gptel-backend (or gptel-claude-backend gptel-chatgpt-backend)) - (setq gptel-model "claude-opus-4-6"))) + (setq gptel-model "claude-opus-4-7"))) ;; ------------------ GPTel Conversation And Utility Commands ------------------ @@ -189,7 +188,7 @@ where DISPLAY-STRING is \"Backend: model\" for use in completing-read." "Format the current backend/model as a display string. BACKENDS is the alist from `cj/gptel--available-backends'. CURRENT-BACKEND and CURRENT-MODEL are the active gptel settings. -Returns a string like \"Anthropic - Claude: claude-opus-4-6\"." +Returns a string like \"Anthropic - Claude: claude-opus-4-7\"." (let ((backend-name (car (rassoc current-backend backends)))) (format "%s: %s" (or backend-name "AI") @@ -370,7 +369,7 @@ Works for any buffer, whether it's visiting a file or not." (cj/ensure-gptel-backends) ;; Set Claude as default after initialization (setq gptel-backend gptel-claude-backend) - (setq gptel-model "claude-opus-4-6") + (setq gptel-model "claude-opus-4-7") (setq gptel-confirm-tool-calls nil) ;; allow tool access by default |
