update models
This commit is contained in:
+44
-13
@@ -13,9 +13,11 @@
|
||||
:host "localhost:8000"
|
||||
:protocol "http"
|
||||
:stream t
|
||||
:models '(Qwen3-Coder-30B-A3B-Instruct-Q6_K
|
||||
Qwen3-30B-A3B-Thinking-2507-Q6_K
|
||||
qwen3-coder-80b
|
||||
:models '(Qwen3.6-27B-Q4_K_M.gguf
|
||||
Qwen3.6-35B-A3B-MXFP4_MOE.gguf
|
||||
unsloth/Qwen3-Coder-Next-GGUF:UD-IQ3_XXS
|
||||
unsloth/Qwen3.5-9B-GGUF:UD-Q4_K_XL
|
||||
Qwen3-Coder-Next-UD-Q4_K_XL
|
||||
|
||||
;; GLM models (reasoning handled globally via gptel-include-reasoning)
|
||||
(GLM-4.7-Flash-Q4_K_M
|
||||
@@ -24,11 +26,25 @@
|
||||
(GLM-4.7-Flash-UD-Q6_K_XL
|
||||
:description "GLM-4.7-Flash 30B MoE Q6 XL (26GB)"
|
||||
:request-params (:max_tokens 8192))))
|
||||
gptel-model 'Qwen3-Coder-30B-A3B-Instruct-Q6_K)
|
||||
gptel-model 'Qwen3.6-35B-A3B-MXFP4_MOE.gguf)
|
||||
|
||||
;; Prevent ChatGPT from being used as default
|
||||
(setq-default gptel-model 'Qwen3-Coder-30B-A3B-Instruct-Q6_K)
|
||||
|
||||
(setq gptel-backend (gptel-make-openai "mlx-lm"
|
||||
:host "localhost:8000"
|
||||
:protocol "http"
|
||||
:stream t
|
||||
:models '(mlx-community/Qwen3.6-27B-4bit))
|
||||
gptel-model 'mlx-community/Qwen3.6-27B-4bit)
|
||||
|
||||
|
||||
(setq gptel-backend (gptel-make-openai "mlx-studio"
|
||||
:host "localhost:8080"
|
||||
:protocol "http"
|
||||
:stream t
|
||||
:models '(inferencerlabs/Qwen3.5-35B-A3B-MLX-5.5bit))
|
||||
gptel-model 'inferencerlabs/Qwen3.5-35B-A3B-MLX-5.5bit)
|
||||
;; Additional backend: Ollama for smaller models
|
||||
(gptel-make-ollama "Ollama"
|
||||
:host "localhost:11434"
|
||||
@@ -40,15 +56,6 @@
|
||||
:capabilities (tools media)
|
||||
:mime-types ("image/jpeg" "image/png" "image/svg"))))
|
||||
|
||||
;; Backend for GLM thinking models (uses DeepSeek parser for reasoning_content)
|
||||
(gptel-make-deepseek "GLM-think"
|
||||
:host "localhost:8000"
|
||||
:protocol "http"
|
||||
:stream t
|
||||
:key "not-needed"
|
||||
:models '((GLM-4.7-Flash-UD-Q6_K_XL
|
||||
:description "GLM-4.7-Flash Q6 XL with thinking"
|
||||
:request-params (:max_tokens 4096))))
|
||||
|
||||
;; Presets (these reference the backends defined above)
|
||||
(gptel-make-preset 'explain
|
||||
@@ -88,6 +95,30 @@
|
||||
:request-params '(:max_tokens 2048
|
||||
:stop ["<|user|>" "<|observation|>" "<|endoftext|>"]))
|
||||
|
||||
|
||||
(gptel-make-tool
|
||||
:name "projectile-search"
|
||||
:function (lambda (pattern)
|
||||
(require 'projectile)
|
||||
(projectile-find-file (projectile-guess-project-root))
|
||||
(let* ((root (projectile-project-root))
|
||||
(default-directory root)
|
||||
(grep-command (concat "grep -r --exclude-dir={.git,node_modules,vendor} -I '"
|
||||
pattern
|
||||
" --include={'*.el','*.py','*.js','*.java','*.c','*.cpp','*.h','*.hs','*.rb','*.go','*.jsx','*.ts','*.tsx','*.scala','*.php','*.sh','*.yaml','*.yml','*.json'}"
|
||||
))
|
||||
(output (shell-command-to-string grep-command)))
|
||||
(if (string-empty-p output)
|
||||
(format "No results found for pattern: %s in project %s" pattern (or (projectile-project-name) "current"))
|
||||
(if (> (length output) 3000)
|
||||
(concat (substring output 0 3000) "\n... (truncated)")
|
||||
output))))
|
||||
:description "Search the current project using projectile. Sets working directory to project root and searches for a pattern in common source files."
|
||||
:args (list '(:name "pattern"
|
||||
:type "string"
|
||||
:description "Search pattern to find in project files"))
|
||||
:category "project")
|
||||
|
||||
;; GLM search tool - searches org-roam notes via ripgrep
|
||||
(gptel-make-tool
|
||||
:name "search_notes"
|
||||
|
||||
Reference in New Issue
Block a user