From 5a7ea4e0123ecee298437fb2be8d16d3ee9cf29d Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 6 Mar 2026 19:12:35 -0600 Subject: feat(gptel): update Claude models, fix default system prompt Update Anthropic model list to current: claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5-20251001. Fix gptel--system-message not picking up the custom default.org directive (defvar set at load time before gptel-prompts replaces the default entry). Add cleanup tasks for ai-config, calibredb, and slack reaction workflow to todo.org. --- modules/ai-config.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'modules/ai-config.el') diff --git a/modules/ai-config.el b/modules/ai-config.el index e76e9342..c2b9b9f6 100644 --- a/modules/ai-config.el +++ b/modules/ai-config.el @@ -78,10 +78,9 @@ Call this only after loading 'gptel' so the backend constructors exist." "Claude" :key (cj/anthropic-api-key) :models '( - "claude-opus-4-1-20250805" - "claude-3-5-sonnet-20241022" - "claude-3-opus-20240229" - "claude-3-5-haiku-20241022" + "claude-opus-4-6" + "claude-sonnet-4-6" + "claude-haiku-4-5-20251001" ) :stream t))) (unless gptel-chatgpt-backend @@ -391,7 +390,11 @@ Works for any buffer, whether it's visiting a file or not." (gptel-prompts-directory (concat user-emacs-directory "ai-prompts")) :config (gptel-prompts-update) - (gptel-prompts-add-update-watchers)) + (gptel-prompts-add-update-watchers) + ;; gptel--system-message is set at gptel load time, before gptel-prompts + ;; replaces the default directive. Re-apply it now. + (when-let* ((dir (alist-get 'default gptel-directives))) + (setq gptel--system-message dir))) ;;; --------------------------------- AI Keymap --------------------------------- -- cgit v1.2.3