Compare commits

..

2 Commits

Author SHA1 Message Date
tomatocream a64bc65ad4 upgadegptel 2025-10-19 21:34:53 +08:00
tomatocream 4362f8ebbf change binding 2025-10-19 21:26:58 +08:00
+6 -5
View File
@@ -29,8 +29,8 @@
;; Search bindings for consult-line ;; Search bindings for consult-line
(map! (map!
:n "C-s" (lambda () (interactive) (consult-line (thing-at-point 'symbol))) :n "C-s" #'consult-line
:n "M-S" #'consult-line :n "M-s" (lambda () (interactive) (consult-line (thing-at-point 'symbol)))
:n "C-S-s" #'consult-line-multi) :n "C-S-s" #'consult-line-multi)
(after! lsp-ui (after! lsp-ui
@@ -307,14 +307,15 @@
(setq org-download-screenshot-method "maim -s %s") (setq org-download-screenshot-method "maim -s %s")
) )
(setq gptel-model 'mixtral-8x7b-32768 (setq gptel-model 'google/gemini-2.5-flash ;; Default model
gptel-backend gptel-backend
(gptel-make-openai "OpenRouter" ;Any name you want (gptel-make-openai "OpenRouter" ;Any name you want
:host "openrouter.ai" :host "openrouter.ai"
:endpoint "/api/v1/chat/completions" :endpoint "/api/v1/chat/completions"
:stream t :stream t
:key "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" ;can be a function that returns the key :key "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" ;can be a function that returns the key
:models '(google/gemini-2.5-flash-preview-05-20 :models '(google/gemini-2.5-flash
google/gemini-2.5-flash-preview-05-20:thinking google/gemini-2.5-pro
anthropic/claude-sonnet-4 anthropic/claude-sonnet-4
anthropic/claude-sonnet-4.5
))) )))