Files
.emacs.d/modules/ai/siren-openai-chatgpt.el

36 lines
743 B
EmacsLisp

;;; siren-openai-chatgpt.el --- jimeh's Emacs Siren: openai-chatgpt configuration.
;;; Commentary:
;; Basic configuration for openai-chatgpt.
;;; Code:
(require 'siren-chatgpt)
(use-package openai
:straight (:host github :repo "emacs-openai/openai")
:defer t
:config
(siren-chatgpt-register-api-key-var 'openai-key))
(use-package chatgpt
:straight (:host github :repo "emacs-openai/chatgpt")
:defer t
:after openai
:custom
(chatgpt-max-tokens 2000)
(chatgpt-temperature 1.0)
:config
(siren-chatgpt-register-model-var 'chatgpt-model))
(use-package codegpt
:straight (:host github :repo "emacs-openai/codegpt")
:defer t
:after openai)
(provide 'siren-openai-chatgpt)
;;; siren-openai-chatgpt.el ends here