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.gitin your terminal. - Navigate to the project directory by running
cd Openai-Example. - Install the dependencies by running
npm install. - Create a
.envfile in the root directory and set theAPI_KEYvariable 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.