diff options
| author | Craig Jennings <c@cjennings.net> | 2026-03-06 19:12:35 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-03-06 19:12:35 -0600 |
| commit | 169dd1da9665b9837037371e71bf5fb1a4b5e57a (patch) | |
| tree | d96c02952e0f460f60fe3e2f78953f1eb616c3f6 | |
| parent | 6c166c6cc953dd434db797accbf16600fb2d5697 (diff) | |
| download | dotemacs-169dd1da9665b9837037371e71bf5fb1a4b5e57a.tar.gz dotemacs-169dd1da9665b9837037371e71bf5fb1a4b5e57a.zip | |
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.
| -rw-r--r-- | modules/ai-config.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/ai-config.el b/modules/ai-config.el index e76e93429..c2b9b9f66 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 --------------------------------- |
