From 893a6736166c5b61dfb78b97a5d1ed6e4f1651dd Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 3 Jul 2024 15:21:34 -0400 Subject: [PATCH] Add gptel --- emacs/.emacs.d/config/init-ai.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/emacs/.emacs.d/config/init-ai.el b/emacs/.emacs.d/config/init-ai.el index b1f46a5..24ba99c 100644 --- a/emacs/.emacs.d/config/init-ai.el +++ b/emacs/.emacs.d/config/init-ai.el @@ -1,5 +1,16 @@ ;; -*- lexical-binding: t; -*- +(use-package gptel + :commands (gptel-send + gptel + gptel-request) + :config + (setq gptel-model "llama3:latest" + gptel-backend (gptel-make-ollama "Ollama" + :stream t + :models '("llama3:latest" + "mistral:latest")))) + (use-package llama :straight `(:local-repo ,(expand-file-name "packages/llama" user-emacs-directory) :type nil) :load-path "packages/llama"