To test this JS script, you need to have a bunch of pre-requisites:
- Created a Pangea Account
- Get a Pangea Redact token
- Create a OpenAI account and get the OpenAI key
export PANGEA_REDACT_TOKEN="<PANGEA_REDACT_TOKEN_FROM_CONSOLE>"
export OPENAI_API_KEY="<OPENAI_KEY>"
npm install pangea-node-sdk openai
Create a new file called secure-gpt.py
and paste the following code in. Then run it:
node secure-gpt.py