An open API service indexing awesome lists of open source software.

https://github.com/alessandrow/emacs-chatgpt

ChatGPT Mode for Emacs
https://github.com/alessandrow/emacs-chatgpt

chatgpt emacs gpt4o

Last synced: 15 days ago
JSON representation

ChatGPT Mode for Emacs

Awesome Lists containing this project

README

        

#+title: Emacs ChatGPT
#+HTML:
#+LAST_MODIFIED: [2024-06-24 Mon 11:42]

This package provides a chat interface to OpenAI via its chat completions API.
For a more sophisticated package see [[https://github.com/SFTtech/emacs-elaiza][ELAIZA]].

* Installation
** Doom Emacs
Add the following to your =packages.el=
#+begin_src emacs-lisp
(package! chatgpt :recipe (:host github :repo "AlessandroW/emacs-chatgpt" :branch "main"))
#+end_src

Store your API key either in =~/.authinfo.gpg= or ~chatgpt-api-key~.
#+begin_example ~/.authinfo.gpg
machine api.openai.com port https login chatgpt password
#+end_example

* Usage
You can prompt the model with =M-x chatgpt= and chat in the =*ChatGPT*= buffer using =C-c RET=.
#+HTML: