Set some customizations for llm integration
This commit is contained in:
parent
f4da3fc9e2
commit
87584357a9
@ -9,6 +9,12 @@
|
||||
llm-set-model
|
||||
llm-prompt
|
||||
llm-prompt-buffer
|
||||
llm-prompt-region))
|
||||
llm-prompt-region)
|
||||
:config
|
||||
(add-to-list 'display-buffer-alist '("\\*llm-.*\\*"
|
||||
(display-buffer-reuse-mode-window
|
||||
display-buffer-pop-up-window)))
|
||||
:custom
|
||||
(llm-model "nous-hermes-llama2-13b"))
|
||||
|
||||
(provide 'init-llm)
|
||||
|
@ -156,6 +156,7 @@ The process is named NAME and runs in BUFFER-NAME."
|
||||
(switch-to-buffer "*llm-prompt-buffer*")))
|
||||
|
||||
(defun llm-prompt-region (query)
|
||||
"Prompt llm with the contents of the region and the QUERY."
|
||||
(interactive "sQuery: ")
|
||||
(let ((extra-args (list "-s" (buffer-substring-no-properties (region-beginning) (region-end)))))
|
||||
(apply #'llm--run-async
|
||||
|
Loading…
Reference in New Issue
Block a user