Skip to content

doemser/next-openai-integration

Repository files navigation

Talk to anyone you like

Rick Sanchez

This repository provides an isolated entrypoint into the world of fetching results from OpenAI's API. It's designed for simplicity and ease of use, perfect for beginners who want to start exploring the powerful capabilities of OpenAI's GPT engines.

The app allows users to input a persona and a question, and uses OpenAI's API to generate a response to the question from the perspective of the specified persona. The app is built using React and the generated response is displayed in real-time on the webpage.

Getting Started

Add your API key

Create an account at https://platform.openai.com/signup and obtain your API key.

Copy the .env.local.example file to .env.local:

cp .env.local.example .env.local

Open the .env file and add your OpenAI API key:

OPENAI_API_KEY=your_api_key_here

If you do not have a paid openai api key, you will need to adjust the model to use something lower than gpt3.5-turbo.

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Releases

No releases published

Packages

No packages published