summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/init.el19
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)))