nextjs chatgpt plugin starter
1.0.0
This is essentially the JavaScript version of the Python app documented in the OpenAI Chat GPT docs.
I originally had trouble getting the headers and cors working properly so I figured I'd document how to do this here.
This app has no user interface, instead it's meant to use with GhatGPT's UI so therefore you must have access to ChatGPT plugins, which at the moment are still in beta.
git clone [email protected]:dabit3/nextjs-chatgpt-starter.git
cd nextjs-chatgpt-starter
yarn # or npm install, pnpmnpm run build
npm start
# If you run this in dev mode, the memory may not persist well as the server will randomly restart sometimesWhen prompted for your website domain, type in 'http://localhost:3000'
Ask for your list of todos:
what are my todos?
# or anything like thatAdd a todo:
add book flight to my todosSummarize todos:
How many todos do I have left?
Or any other questions you might have.
To add more routes:
Create new route in pages/api directory.
Update openapi.yaml with new path
Update openapi.yaml with schema for any data model coming back or being passed in.