org-ai integration
This commit is contained in:
parent
41742a2246
commit
0662f91389
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user