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"
|
||||
:models '("llama-cpp-qwen-coder"))
|
||||
|
||||
(setq! gptel-model "llama-cpp-qwen3")
|
||||
(setq! gptel-model 'llama-cpp-qwen3)
|
||||
|
||||
;; nicer org mode foo
|
||||
(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-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
|
||||
. "You are a large language model living in Emacs and a helpful assistant. Respond concisely.")
|
||||
(programming
|
||||
|
@ -664,8 +653,7 @@
|
|||
(chat
|
||||
. "You are a large language model and a conversation partner. Respond concisely."))
|
||||
gptel-expert-commands t
|
||||
|
||||
gptel-temperature 0.2)
|
||||
gptel-temperature 0.6)
|
||||
|
||||
(add-hook 'gptel-post-response-functions 'gptel-end-of-response)
|
||||
(add-hook 'gptel-post-stream-hook 'gptel-auto-scroll)
|
||||
|
|
Loading…
Add table
Reference in a new issue