Skip to content

Commit

Permalink
Add basic gptel config
Browse files Browse the repository at this point in the history
  • Loading branch information
regob committed Oct 23, 2024
1 parent 7780310 commit 382732d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lisp/init-help.el
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 382732d

Please sign in to comment.