Skip to content

Commit c957275

Browse files
committed
fix: org-ai should now be properly set up
1 parent 0677563 commit c957275

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

spacemacs.org

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -390,19 +390,17 @@ E.g. when visiting a soft/hard link.
390390
** org-mode
391391
*** org-ai
392392
#+BEGIN_SRC emacs-lisp :tangle user-config.el
393-
(use-package org-ai
394-
:ensure :commands
395-
(org-ai-mode)
396-
:custom (org-ai-openai-api-token (auth-source-pick-first-password :host "api.openai.com")):init
397-
(add-hook 'org-mode-hook #'org-ai-mode)
398-
:config (setq org-ai-default-chat-model "gpt-3.5-turbo")(org-ai-install-yasnippets))
399-
400-
(use-package whisper
401-
:load-path "~/.spacemacs.d/private/whisper.el/whisper.el"
402-
:bind ("M-s-r" . whisper-run))
403-
(require 'whisper (expand-file-name "~/.spacemacs.d/private/whisper.el/whisper.el"))
404-
(use-package greader :ensure)
405-
(require 'org-ai-talk)
393+
(use-package org-ai
394+
:ensure t
395+
:commands (org-ai-mode
396+
org-ai-global-mode)
397+
:custom (org-ai-openai-api-token (auth-source-pick-first-password :host "api.openai.com"))
398+
:init
399+
(add-hook 'org-mode-hook #'org-ai-mode) ; enable org-ai in org-mode
400+
(org-ai-global-mode) ; installs global keybindings on C-c M-a
401+
:config
402+
(setq org-ai-default-chat-model "gpt-4") ; if you are on the gpt-4 beta:
403+
(org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets (require 'org-ai-talk)
406404
#+END_SRC
407405

408406
*** org-pomodora

0 commit comments

Comments
 (0)