Open source · 2023
AI ChatBot
A ChatGPT-style chat app: React interface with a Node.js server on the OpenAI API, saved chat history and an offline mode.
What it is
A chat interface in the style of ChatGPT, built in 2023 to learn and show how to put a large language model behind a real product.
Features
- React front-end with a sidebar of past chats and a "New chat" button
- Node.js + Express server that keeps the OpenAI API key private and calls the chat completions API (GPT-3.5)
- Chat history saved in the browser, and an offline mode that keeps your questions until you're back online
The code is public on GitHub, with a live demo.