GuiBibeau / toxicity-demo

An exploration of hosting and consuming AI models in JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

toxicity-demo

A screenshot of the application

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.

Prerequisites

  • Next.js
  • Fly.io account
  • OpenAI API Key

Getting Started

  • Clone the repository
git clone https://github.com/GuiBibeau/toxicity-demo.git
  • Install dependencies
npm install
  • Ensure that you place your OPENAI_API_KEY in pages/api/question.js inside a .env file at the root of your Next.js project.
  • Start the development server
npm run dev

Support and Feedback

Do reach out in case you have any questions or feedback. I'm here to help!

About

An exploration of hosting and consuming AI models in JS


Languages

Language:CSS 58.7%Language:JavaScript 33.7%Language:Dockerfile 7.6%