Simple Next.js Chat application powered by OpenAI chatCompletions API
Download the package from GitHub
git clone https://github.com/asad128/chat-app.git
Create your .env file
touch .env
Update your .env file with the following. You can see your .env by typing sudo nano .env or just by clicking on the file if you are in VS Code.
OPENAI_API_KEY=enter-you-key-here
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.