summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-04-13 06:48:09 +0300
committerThanos Apollo <[email protected]>2023-04-13 06:48:09 +0300
commita0900d46630f5d9c891d1f68491c5a784063c6ec (patch)
tree3820e0f56980cfb606b0e7a60d9ae7ceba152678
parent2b63834c98ccd8dc4453b2ca4525bd13bd19cc8f (diff)
emacs: redo chatgpt with emacs-openai using api
-rw-r--r--.emacs.d/init.el9
-rwxr-xr-xorg/emacs.org9
2 files changed, 2 insertions, 16 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 6a8a315..c3704fa 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -554,14 +554,7 @@ Contains the list of packages that need to be installed.")
:keymaps 'org-mode-map
"3" 'org-insert-image-size-300)
-;; (require 'quelpa-use-package)
-;; (use-package chatgpt
-;; :quelpa ((chatgpt :fetcher git :url "https://github.com/joshcho/ChatGPT.el.git") :upgrade t)
-;; :init
-;; (require 'python)
-;; (setq chatgpt-repo-path (expand-file-name "chatgpt/" quelpa-build-dir))
-;; (setq python-interpreter "/usr/bin/python3")
-;; :bind ("C-c q" . chatgpt-query))
+(setq openai-key (password-store-get "chatgpt/api2"))
(add-hook 'org-mode-hook 'org-make-toc-mode)
diff --git a/org/emacs.org b/org/emacs.org
index 02a9cd7..538bc28 100755
--- a/org/emacs.org
+++ b/org/emacs.org
@@ -609,14 +609,7 @@ Hook with ~dired-mode~
#+end_src
** ChatGPT
#+begin_src emacs-lisp
- ;; (require 'quelpa-use-package)
- ;; (use-package chatgpt
- ;; :quelpa ((chatgpt :fetcher git :url "https://github.com/joshcho/ChatGPT.el.git") :upgrade t)
- ;; :init
- ;; (require 'python)
- ;; (setq chatgpt-repo-path (expand-file-name "chatgpt/" quelpa-build-dir))
- ;; (setq python-interpreter "/usr/bin/python3")
- ;; :bind ("C-c q" . chatgpt-query))
+ (setq openai-key (password-store-get "chatgpt/api2"))
#+end_src
* Org-mode Configuration
** org-make-toc