Skip to content

🧠 💻 This project is a small prompt-completion application built with Open-AI's GPT-3 (DaVinci) and Next.js. Users can enter prompts of any complexity and expect a response in text form.

Notifications You must be signed in to change notification settings

theericzhang/OpenResponse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenResponse

🧠 💻 This project is a small prompt-completion application built with Open-AI's GPT-3 (DaVinci) and Next.js. Users can enter prompts of any complexity and expect a response in text form. This application does not collect or store any data.

Technology

This is a Next.js project bootstrapped with create-next-app. React is used as the front-end library for creating UI components. Routing and node requests + API building are handled by Next.js.

Installation

Getting Environment Variables for OpenAI's API

OpenAI provides new users with $18.00 in free credits to be used in their first 3 months across their product lineup, including GPT-3 and Codex. Visit their site and sign up to acquire a key.

This will be used to authenticate access to OpenAI's API.

Change directory into the project's root and create a .env file.

cd OpenResponse
touch .env

Add the key to your .env file.

OPENAI_API_KEY=YOUR_API_KEY_HERE

In the same .env file go to the next line and add the environment of the GPT-3 instance here. If you got your key from OpenAI's website, you can simply put the following -

CURRENT_ENVIRONMENT=openai

While in the project's root folder, install dependencies.

npm i

Start the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

About

🧠 💻 This project is a small prompt-completion application built with Open-AI's GPT-3 (DaVinci) and Next.js. Users can enter prompts of any complexity and expect a response in text form.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published