From 382732db6e19cc183ffa70caf32d6fb765143734 Mon Sep 17 00:00:00 2001 From: Rego Borsodi Date: Wed, 23 Oct 2024 22:05:34 +0200 Subject: [PATCH] Add basic gptel config --- lisp/init-help.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lisp/init-help.el b/lisp/init-help.el index f2103e3..067e967 100644 --- a/lisp/init-help.el +++ b/lisp/init-help.el @@ -59,6 +59,17 @@ :config (bind-key (kbd "d") #'dictionary-lookup-definition 'rb-user-keymap)) +;; ---------------------------------------------------------------------------- +;; GPTel - LLM interface for emacs +;; ---------------------------------------------------------------------------- + +(use-package gptel + :ensure (:source "MELPA") + :config + (setq gptel-api-key (lambda () (getenv "OPENAI_API_KEY"))) + (setq gptel-model "gpt-4o-mini") + ) + (provide 'init-help) ;;; init-help.el ends here