From 2f4d415cba4895bcff1372f9fca0c512b80975a5 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 9 Sep 2024 11:57:42 -0400 Subject: [PATCH] Add anthropic gptel backend --- emacs/.emacs.d/config/init-ai.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emacs/.emacs.d/config/init-ai.el b/emacs/.emacs.d/config/init-ai.el index 6d49132..540c6c5 100644 --- a/emacs/.emacs.d/config/init-ai.el +++ b/emacs/.emacs.d/config/init-ai.el @@ -44,6 +44,9 @@ :models '("llama3.1:latest" "mistral-nemo:latest" "gemma2:2b"))) + (defvar gptel-backend-anthropic (gptel-make-anthropic "Claude" + :stream t + :key (password-store-get "anthropic-api-key"))) (setq gptel-backend gptel-backend-openai gptel-model "gpt-4o") (defun gptel-select-backend (backend)