diff --git a/elisp/private.el b/elisp/private.el index 16e00d6..9e852f6 100644 Binary files a/elisp/private.el and b/elisp/private.el differ diff --git a/init.el b/init.el index 78adb7f..7f0c335 100644 --- a/init.el +++ b/init.el @@ -3864,11 +3864,11 @@ one of the normal rainbow-delimiters-depth-N-face faces." (minuet-context-window 512) (minuet-request-timeout 5) :config - (defvar my/localai-api-key (auth-source-pass-get 'secret "emacs/localai-api")) (setq minuet-openai-fim-compatible-options - '(:model "qwen3-32b-coding" - :end-point "https://ai.zander.im/v1/completions" - :api-key (lambda () my/localai-api-key) + `(:model "qwen3-32b-coding" + :end-point ,(format "https://%s/v1/completions" + (my/get-private 'localai-host)) + :api-key "TERM" :name "LocalAI" :template (:prompt minuet--default-fim-prompt-function :suffix minuet--default-fim-suffix-function) @@ -3960,10 +3960,10 @@ vising, and their major mode" (defvar my/-localai-backend (gptel-make-openai "LocalAI" :protocol "https" - :host "ai.zander.im" + :host (my/get-private 'localai-host) :endpoint "/v1/chat/completions" :stream t - :key (lambda () my/localai-api-key) + :key "TERM" :models my/-localai-models)) (defvar my/-ollama-models '((gemma4:31b :description "Google Gemma4 (31b)" @@ -3974,13 +3974,14 @@ vising, and their major mode" :cutoff-date "2026-3"))) (defvar my/-ollama-backend (gptel-make-ollama "Server Ollama" - :models my/-ollama-models)) + :models my/-ollama-models + :host (my/get-private 'ollama-host))) (gptel-make-preset 'localai-chat - :description "LocalAI with Gemma4 (31b) (web search enabled)" - :backend my/-localai-backend - :model 'gemma-4-31b-it-qat-q4_0 - :system 'default - :tools '("WebSearch" "list_buffers" "read_buffer")) + :description "LocalAI with Gemma4 (31b) (web search enabled)" + :backend my/-localai-backend + :model 'gemma-4-31b-it-qat-q4_0 + :system 'default + :tools '("WebSearch" "list_buffers" "read_buffer")) (setq gptel-backend my/-localai-backend) (setq gptel-model 'gemma-4-31b-it-qat-q4_0)) (use-package gptel-agent