xenodium / chatgpt-shell

ChatGPT and DALL-E Emacs shells + Org babel 🦄 + a shell maker for other providers
https://xenodium.com
GNU General Public License v3.0
827 stars 74 forks source link

Installing dall-e-shell gives a warning/error #204

Closed jozilla closed 6 months ago

jozilla commented 6 months ago

After install dall-e-shell, I get the following:

Warning (bytecomp): reference to free variable ‘dall-e-shell-mode-map’

I'm also a bit unsure if I should use two use-package declarations, one for chatgpt-shell and one for dall-e-shell?

;; ChatGPT
(use-package chatgpt-shell
  :ensure t
  :custom
  ((chatgpt-shell-openai-key
    (lambda ()
      (auth-source-pick-first-password :host "api.openai.com")))))
;; DALL-E
(use-package dall-e-shell
  :ensure t
  :custom
  ((dalle-shell-openai-key
    (lambda ()
      (auth-source-pick-first-password :host "api.openai.com")))))

Somehow the openai key isn't set for dall-e.

xenodium commented 6 months ago

I should use two use-package declarations, one for chatgpt-shell and one for dall-e-shell?

Two declarations. You have it right.

Somehow the openai key isn't set for dall-e.

There's a typo in the snippet: dalle-shell-openai-key -> dall-e-shell-openai-key.

jozilla commented 6 months ago

D'oh, stupid mistake about the misspelling, thanks so much!