From 68e7bcd8ebbf2963c7b169e7941f01cfd20589ef Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 May 2026 23:51:29 -0500 Subject: chore(ai-config): refresh gptel model menus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- modules/ai-config.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'modules') 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 -- cgit v1.2.3