minuet experiment
This commit is contained in:
parent
be949bbc1e
commit
f779d171fb
39
init.org
39
init.org
|
|
@ -1697,6 +1697,45 @@ Use =inheritenv= and =envrc= to load ~.envrc~ direnv files:
|
||||||
)
|
)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** COMMENT =minuet.el=
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package minuet
|
||||||
|
:straight t
|
||||||
|
:hook ((prog-mode markdown-mode conf-toml-mode) . minuet-auto-suggestion-mode)
|
||||||
|
:bind (("TAB" . minuet-accept-suggestion)
|
||||||
|
("C-<tab>" . minuet-accept-suggestion)
|
||||||
|
("M-<tab>" . minuet-accept-suggestion-line))
|
||||||
|
:init
|
||||||
|
(define-prefix-command 'nemo/minuet-map)
|
||||||
|
(setenv "DEEPSEEK_API_KEY" (s-chop-suffix "\n" (shell-command-to-string "rbw get 'Deepseek Minuet'")))
|
||||||
|
:general-config
|
||||||
|
(leader-def
|
||||||
|
"c" '("Minuet" . nemo/minuet-map))
|
||||||
|
(general-def
|
||||||
|
:keymaps 'nemo/minuet-map
|
||||||
|
"c" '("Show Completion" . minuet-show-suggestion)
|
||||||
|
"C" '("Show Completions" . minuet-complete-with-minibuffer)
|
||||||
|
"m" '("Configure" . minuet-configure-provider)
|
||||||
|
:map minuet-active-mode-map
|
||||||
|
"M-p" 'minuet-previous-suggestion
|
||||||
|
"M-n" 'minuet-next-suggestion
|
||||||
|
"M-RET" 'minuet-accept-suggestion
|
||||||
|
"M-DEL" 'minuet-reject-suggestion
|
||||||
|
"M-S-RET" 'minuet-accept-suggestion-line)
|
||||||
|
|
||||||
|
:config
|
||||||
|
(setq minuet-provider 'openai-fim-compatible
|
||||||
|
minuet-auto-suggestion-throttle-delay 0.5
|
||||||
|
minuet-auto-suggestion-debounce-delay 0.1
|
||||||
|
minuet-n-completions 1)
|
||||||
|
|
||||||
|
(plist-put minuet-openai-fim-compatible-options :end-point "https://api.deepseek.com/beta/completions")
|
||||||
|
(plist-put minuet-openai-fim-compatible-options :api-key "DEEPSEEK_API_KEY")
|
||||||
|
(plist-put minuet-openai-fim-compatible-options :model "deepseek-v4-flash")
|
||||||
|
|
||||||
|
(minuet-set-optional-options minuet-openai-fim-compatible-options :max_tokens 56)
|
||||||
|
(minuet-set-optional-options minuet-openai-fim-compatible-options :top_p 0.9))
|
||||||
|
#+end_src
|
||||||
*** COMMENT Ollama
|
*** COMMENT Ollama
|
||||||
I feel so bad for this.. but its not awful..
|
I feel so bad for this.. but its not awful..
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue