Basic vanilla HTML and JavaScript implementation of the ChatGPT API.
Production implementation here: fredeaker.com/chattypatty/
- Add support for POST error messages such as 429 (Too Many Requests).
- Add cookies to store parameters between sessions.
- Include an option to select output type: plaintext or Markdown. See
Formatting re-enabled
mentioned here and see this guidance on how to add additional instructions to the prompt. - Change debug section to a Boostrap Modal, Toast, or Tooltip