This is a sample application that demonstrates how to build an intelligent application using Next.js, OpenAI, and Fly.io.
The app uses the OpenAI API to generate natural language responses based on the input provided by the user.
- Next.js
- Fly.io account
- OpenAI API Key
- Clone the repository
git clone https://github.com/GuiBibeau/toxicity-demo.git
- Install dependencies
npm install
- Ensure that you place your
OPENAI_API_KEY
inpages/api/question.js
inside a.env
file at the root of your Next.js project. - Start the development server
npm run dev
- Deploy the app on https://fly.io
Do reach out in case you have any questions or feedback. I'm here to help!