Configure gptel
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Andrea Ciceri 2025-03-28 15:48:08 +01:00
parent fc79fba781
commit 4ba43fb647
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -981,7 +981,6 @@ This is meant to be an helper to be called from the window manager."
(use-package gptel (use-package gptel
:custom :custom
;; (gptel-model 'deepseek/deepseek-chat)
(gptel-model 'qwen/qwen-max) (gptel-model 'qwen/qwen-max)
(gptel-backend (gptel-make-openai "OpenRouter" (gptel-backend (gptel-make-openai "OpenRouter"
:host "openrouter.ai" :host "openrouter.ai"
@ -995,8 +994,8 @@ This is meant to be an helper to be called from the window manager."
:config :config
(require 'gptel-curl) (require 'gptel-curl)
(add-hook 'gptel-post-response-functions 'gptel-end-of-response) ;; (add-hook 'gptel-post-response-functions 'gptel-end-of-response)
(add-hook 'gptel-post-stream-hook 'gptel-auto-scroll) ;; (add-hook 'gptel-post-stream-hook 'gptel-auto-scroll)
(defun ccr/suggest-eshell-command () (defun ccr/suggest-eshell-command ()
(interactive) (interactive)