Tweak gptel setup (using gpt-4 by default)

This commit is contained in:
larstvei 2023-07-12 06:07:02 -07:00
parent fcd08adcbf
commit a085ef5b11

View File

@ -1229,8 +1229,10 @@
;; Interaction mode for ChatGPT ;; Interaction mode for ChatGPT
(use-package gptel (use-package gptel
:defer t :defer t
:config :hook (gptel-mode . visual-line-mode)
:init
(setq gptel-default-mode 'org-mode (setq gptel-default-mode 'org-mode
gptel-model "gpt-4"
gptel-api-key (auth-source-pick-first-password gptel-api-key (auth-source-pick-first-password
:host "api.openai.com"))) :host "api.openai.com")))