Skip to content

Commit

Permalink
fix: org-ai should now be properly set up
Browse files Browse the repository at this point in the history
  • Loading branch information
Maverobot committed Dec 14, 2023
1 parent 0677563 commit c957275
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions spacemacs.org
Original file line number Diff line number Diff line change
Expand Up @@ -390,19 +390,17 @@ E.g. when visiting a soft/hard link.
** org-mode
*** org-ai
#+BEGIN_SRC emacs-lisp :tangle user-config.el
(use-package org-ai
:ensure :commands
(org-ai-mode)
:custom (org-ai-openai-api-token (auth-source-pick-first-password :host "api.openai.com")):init
(add-hook 'org-mode-hook #'org-ai-mode)
:config (setq org-ai-default-chat-model "gpt-3.5-turbo")(org-ai-install-yasnippets))

(use-package whisper
:load-path "~/.spacemacs.d/private/whisper.el/whisper.el"
:bind ("M-s-r" . whisper-run))
(require 'whisper (expand-file-name "~/.spacemacs.d/private/whisper.el/whisper.el"))
(use-package greader :ensure)
(require 'org-ai-talk)
(use-package org-ai
:ensure t
:commands (org-ai-mode
org-ai-global-mode)
:custom (org-ai-openai-api-token (auth-source-pick-first-password :host "api.openai.com"))
:init
(add-hook 'org-mode-hook #'org-ai-mode) ; enable org-ai in org-mode
(org-ai-global-mode) ; installs global keybindings on C-c M-a
:config
(setq org-ai-default-chat-model "gpt-4") ; if you are on the gpt-4 beta:
(org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets (require 'org-ai-talk)
#+END_SRC

*** org-pomodora
Expand Down

0 comments on commit c957275

Please sign in to comment.