Skip to content

youngerjo/chatgpt-web-demo

Repository files navigation

ChatGPT Web Demo

A minimal ChatGPT web demo based on Next.js and Vercel AI SDK

Setup

Create .env file in project root and set OPENAI_API_KEY from OpenAI developer console like this:

OPENAI_API_KEY=<YOUR KEY HERE>

Installation

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

Run

$ bun dev

License

MIT