This project is a simple implementation of the GPT-3 API, built using Vite and React. It allows users to ask questions, translate languages, simplify text, correct grammar, summarize to a 2nd grade level, convert movie titles to emojis, and explain code, as well as convert JavaScript to Python.
- Clone the repository by running
git clone https://github.com/SamirAhma/Openai-Example.git
in your terminal. - Navigate to the project directory by running
cd Openai-Example
. - Install the dependencies by running
npm install
. - Create a
.env
file in the root directory and set theAPI_KEY
variable to your GPT-3 API key. - Run the application by running
npm run dev
.
- Edit prompt
- Q&A
- Language Translation
- Text Simplification
- Grammar Correction
- Summarization
- Movie to Emoji
- Explain code
- JavaScript to Python
- Make data persistent
Make sure to replace API_KEY
with your own GPT-3 API key in the .env
file before running the application.