Compare commits
No commits in common. "ae4178f270c82c302fcf67abc8fa3c084332d0f3" and "183bfafd95bcfb4bb6a43c8e2b363ac0735af5fa" have entirely different histories.
ae4178f270
...
183bfafd95
@ -39,22 +39,12 @@
|
|||||||
:stream t
|
:stream t
|
||||||
:models '("gpt-4o"
|
:models '("gpt-4o"
|
||||||
"gpt-4o-mini")))
|
"gpt-4o-mini")))
|
||||||
(defun ollama-models ()
|
(defvar gptel-backend-ollama (gptel-make-ollama "Ollama"
|
||||||
(if (executable-find "ollama")
|
:stream t
|
||||||
(->> (shell-command-to-string "ollama list")
|
:models '("llama3.1:latest"
|
||||||
(s-lines)
|
|
||||||
(cdr)
|
|
||||||
(mapcar (lambda (line)
|
|
||||||
(let ((parts (s-split-up-to " " line 1 t)))
|
|
||||||
(car parts))))
|
|
||||||
(-filter #'s-present?))
|
|
||||||
(list "llama3.1:latest"
|
|
||||||
"mistral-nemo:latest"
|
"mistral-nemo:latest"
|
||||||
"gemma2:2b"
|
"gemma2:2b"
|
||||||
"tinyllama:latest")))
|
"tinyllama:latest")))
|
||||||
(defvar gptel-backend-ollama (gptel-make-ollama "Ollama"
|
|
||||||
:stream t
|
|
||||||
:models (ollama-models)))
|
|
||||||
(defvar gptel-backend-anthropic (gptel-make-anthropic "Claude"
|
(defvar gptel-backend-anthropic (gptel-make-anthropic "Claude"
|
||||||
:stream t
|
:stream t
|
||||||
:key (password-store-get "anthropic-api-key")))
|
:key (password-store-get "anthropic-api-key")))
|
||||||
|
@ -227,7 +227,6 @@
|
|||||||
(typescript-mode . eglot-ensure)
|
(typescript-mode . eglot-ensure)
|
||||||
(python-mode . eglot-ensure)
|
(python-mode . eglot-ensure)
|
||||||
(js-web-mode . eglot-ensure)
|
(js-web-mode . eglot-ensure)
|
||||||
(tsx-ts-mode . eglot-ensure)
|
|
||||||
(html-web-mode . eglot-ensure)
|
(html-web-mode . eglot-ensure)
|
||||||
(scala-mode . eglot-ensure)
|
(scala-mode . eglot-ensure)
|
||||||
(c-mode . eglot-ensure)
|
(c-mode . eglot-ensure)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
;; -*- lexical-binding: t; -*-
|
;; -*- lexical-binding: t; -*-
|
||||||
(use-package treesit
|
(use-package treesit
|
||||||
:straight (:type built-in)
|
:straight (:type built-in)
|
||||||
:mode ("\\.tsx\\'" . tsx-ts-mode)
|
|
||||||
:config
|
:config
|
||||||
(setq treesit-language-source-alist
|
(setq treesit-language-source-alist
|
||||||
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
'((bash "https://github.com/tree-sitter/tree-sitter-bash")
|
||||||
|
Loading…
Reference in New Issue
Block a user