Add anthropic gptel backend

This commit is contained in:
Jeremy Dormitzer 2024-09-09 11:57:42 -04:00
parent 5f11045ae0
commit 2f4d415cba

View File

@ -44,6 +44,9 @@
:models '("llama3.1:latest" :models '("llama3.1:latest"
"mistral-nemo:latest" "mistral-nemo:latest"
"gemma2:2b"))) "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 (setq gptel-backend gptel-backend-openai
gptel-model "gpt-4o") gptel-model "gpt-4o")
(defun gptel-select-backend (backend) (defun gptel-select-backend (backend)