org-ai integration

This commit is contained in:
Mike 'Fuzzy' Partin 2024-07-06 09:15:38 -07:00
parent 41742a2246
commit 0662f91389
2 changed files with 19 additions and 0 deletions

View File

@ -177,6 +177,15 @@
:type 'boolean
:group 'thwap-config-group)
(defcustom thwap-org-enable-org-ai nil
"Whether or not to enable org-ai."
:type 'boolean
:group 'thwap-config-group)
(defcustom thwap-org-org-ai-token nil
"OpenAI API Token for use in org-ai."
:type 'string
:group 'thwap-config-group)
;;
;; Example usage

View File

@ -153,6 +153,16 @@
(when (and thwap-org-enable-org thwap-org-enable-org-transclusion)
(straight-use-package 'org-transclusion))
;; org-ai
(when (and thwap-org-enable-org thwap-org-enable-org-ai)
(straight-use-package
'(org-ai :type git :host github :repo "rksm/org-ai"
:local-repo "org-ai"
:files ("*.el" "README.md" "snippets")))
(setq org-ai-default-chat-model "gpt-3.5-turbo")
(setq org-ai-openai-api-token thwap-org-ai-openai-api-token)
(org-ai-global-mode)
(org-ai-install-yasnippets))
;;
;; Org mode configuration