You can get the api key from Your OpenAI account.
You can set the api key on .env file.
# When adding additional environment variables, the schema in "/src/env.mjs"
# should be updated accordingly.
# Prisma
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
DATABASE_URL="file:./db.sqlite"
# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
# NEXTAUTH_SECRET=""
NEXTAUTH_URL="http://localhost:3000"
# Next Auth Discord Provider
DISCORD_CLIENT_ID=""
DISCORD_CLIENT_SECRET=""
# OpenAI
OPENAI_API_KEY= // <- Set your api key here!!
$ yarn
or
$ npm install
$ yarn dev
or
$ npm run dev
Open http://localhost:3000 with your browser to see the result.