Update ai stuff

This commit is contained in:
2026-07-31 07:50:15 -07:00
parent 0b93622ec5
commit def646c815
2 changed files with 13 additions and 12 deletions
BIN
View File
Binary file not shown.
+13 -12
View File
@@ -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