Fix gptel config
This commit is contained in:
parent
bf22ce93ed
commit
704f66439e
1 changed files with 2 additions and 14 deletions
|
@ -635,7 +635,7 @@
|
||||||
:host "100.64.0.3:18080"
|
:host "100.64.0.3:18080"
|
||||||
:models '("llama-cpp-qwen-coder"))
|
:models '("llama-cpp-qwen-coder"))
|
||||||
|
|
||||||
(setq! gptel-model "llama-cpp-qwen3")
|
(setq! gptel-model 'llama-cpp-qwen3)
|
||||||
|
|
||||||
;; nicer org mode foo
|
;; nicer org mode foo
|
||||||
(setq! gptel-default-mode 'org-mode)
|
(setq! gptel-default-mode 'org-mode)
|
||||||
|
@ -644,17 +644,6 @@
|
||||||
(setf (alist-get 'org-mode gptel-prompt-prefix-alist) "@user ")
|
(setf (alist-get 'org-mode gptel-prompt-prefix-alist) "@user ")
|
||||||
(setf (alist-get 'org-mode gptel-response-prefix-alist) "@assistant ")
|
(setf (alist-get 'org-mode gptel-response-prefix-alist) "@assistant ")
|
||||||
|
|
||||||
;; Groq API
|
|
||||||
(gptel-make-openai "groq"
|
|
||||||
:host "api.groq.com"
|
|
||||||
:endpoint "/openai/v1/chat/completions"
|
|
||||||
:stream t
|
|
||||||
:key (read-api-secret ".groq_api_key")
|
|
||||||
:models '("llama3-70b-8192"
|
|
||||||
"mixtral-8x7b-32768"
|
|
||||||
"llama3-8b-8192"))
|
|
||||||
|
|
||||||
|
|
||||||
(setq! gptel-directives '((default
|
(setq! gptel-directives '((default
|
||||||
. "You are a large language model living in Emacs and a helpful assistant. Respond concisely.")
|
. "You are a large language model living in Emacs and a helpful assistant. Respond concisely.")
|
||||||
(programming
|
(programming
|
||||||
|
@ -664,8 +653,7 @@
|
||||||
(chat
|
(chat
|
||||||
. "You are a large language model and a conversation partner. Respond concisely."))
|
. "You are a large language model and a conversation partner. Respond concisely."))
|
||||||
gptel-expert-commands t
|
gptel-expert-commands t
|
||||||
|
gptel-temperature 0.6)
|
||||||
gptel-temperature 0.2)
|
|
||||||
|
|
||||||
(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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue