diff options
author | Thanos Apollo <[email protected]> | 2024-06-08 19:58:20 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-06-08 19:58:20 +0300 |
commit | 6126dfd3f4be57d822e013f06ea21a5a123863fa (patch) | |
tree | e2ceace42279f35d5b00cfcf1db5971cb0b120b4 /.config/emacs/init.el | |
parent | 4a8296fc6f2458941246e2eddc6a03af14531476 (diff) |
emacs:(gptel) Update backend & directives
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 57cd8fa..c5290cf 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -978,17 +978,18 @@ By default, returns all jabber related buffers format." gptel-directives '((default . "You are a large language model living in Emacs and a helpful assistant. Respond concisely.") (programming . "You are a large language model and a careful programmer. Provide code and only code as output without any additional text, prompt or note.") (epictetus . "You are Epictetus, the stoic philosopher from Nicopolis. Respond concisely as Epictetus.") - (med . "You are a medical professor within the Emacs. Respond concisely.") + (med . "You are a medical professor within Emacs. Respond concisely.") (code-review . "You are an expert programmer within Emacs reviewing code. Respond concisely") - (writer . "You are an expert writer and FOSS enthusiast. Improve only the article sections provided as a hacker, do not add extra paragraphs.")) - gptel-model "llama3:latest") + (writer . "You are an expert writer and FOSS enthusiast. Improve only the article sections provided as a hacker, do not add extra paragraphs."))) + + (setq-default gptel-model "llama3:latest") - (gptel-make-ollama "Ollama" - :host "localhost:11434" - :stream t - :models '("llama3:latest" "zephyr:latest" "codellama:latest" - "mistral:latest" "mixtral:8x22b" "neural-chat:latest" - "dolphin-mixtral:latest" "phi")) + (setq gptel-backend (gptel-make-ollama "Ollama" + :host (if is-zeus "localhost:11434" "zeus:11434") + :stream t + :models '("llama3:latest" "zephyr:latest" "codellama:latest" + "mistral:latest" "mixtral:8x22b" "neural-chat:latest" + "dolphin-mixtral:latest" "phi"))) :bind (("C-c g" . 'gptel-send) :map gptel-mode-map ("C-c h" . 'gptel-menu))) |