A minimal ChatGPT web demo based on Next.js and Vercel AI SDK
Create .env
file in project root and set OPENAI_API_KEY
from OpenAI developer console like this:
OPENAI_API_KEY=<YOUR KEY HERE>
I personally recommend using Bun as the bundler/package manager. To install Bun, run the following bash script:
$ curl -fsSL https://bun.sh/install | bash
Once Bun is successfully installed, you can use it just like any other package manager (e.g. npm or yarn):
$ bun install
$ bun dev
MIT