This package provides a chat interface to OpenAI via its chat completions API. For a more sophisticated package see ELAIZA.
Add the following to your packages.el
(package! chatgpt :recipe (:host github :repo "AlessandroW/emacs-chatgpt" :branch "main"))
Store your API key either in ~/.authinfo.gpg
or chatgpt-api-key
.
machine api.openai.com port https login chatgpt password <your-api-key>
You can prompt the model with M-x chatgpt
and chat in the *ChatGPT*
buffer using C-c RET
.