This is a chat client wired to consume OpenAI Chat GPT3 API, preserving the chat history so that the model holds a conversation with the user.
- Install dependencies
$ npm i
- Create a file like
.env.local
containing your OpenAI credentials: Eg:
OPENAI_ORG=<your-org-id>
OPENAI_KEY=<your-key>
- Then simply run
npm run dev