Open1
ellama周りの設定
leafを使った設定
(load "~/.emacs.d/secrets.el")
(leaf *llm
:config
(leaf llm
:ensure t
:require llm-gemini
:config
(defvar my-gemini-provider
(make-llm-gemini :key gemini-api-key))
:custom
(llm-warn-on-nonfree . nil))
(leaf ellama
:ensure t
:custom
(ellama-language . "Japanese")
:config
(setq ellama-provider my-gemini-provider)
))
secrets.elをinit.elと同じディレクトリに置き、apiを管理
(setq gemini-api-key "{api-key}")