A simple plugin based on https://github.com/openai/plugins-quickstart
Preqrequisites:
Clone this repo and install dependencies:
git clone https://github.com/fofr/replicate-models-chatgpt-plugin
cd replicate-models-chatgpt-plugin
npm install
Start the server:
npm run dev
Start up ngrok, pointing at port 5003:
ngrok http 5003
Create .env
and set your ngrok URL as the APP_HOST
:
APP_HOST="https://0dc4a909eb0e.ngrok.app"
Grab your Replicate API token from https://replicate.com/account, then paste it into .env:
REPLICATE_API_TOKEN=r8_...
Configure ChatGPT to use the plugin:
- Go to https://chat.openai.com
- Click Plugins dropdown
- Click Plugin store
- Click 'Develop your own plugin'
- Use your ngrok host as the domain