First, install the dependencies:
npm install
Second, create a .env
file in the root of the project and add the following:
OPENAI_API_KEY=CHANGE_ME
OPENAI_API_MODEL=gpt-4o-mini
You can get your OpenAI API key and model from the OpenAI API dashboard by accessing this URL:
https://platform.openai.com/docs/overview
Third, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.