Building ChatGPT Plugins with Supabase Edge Runtime
ChatGPT Plugins support is being released in beta this week with a TypeScript plugin template running on Supabase Edge Runtime. The ai-plugin.json manifest file is required for ChatGPT to identify the plugin, understand its authentication mechanism, and locate the OpenAPI definition. Swagger-jsdoc can be used to generate the OpenAPI definition from JSDoc comments in the /functions/chatgpt-plugin/index.ts file. The CORS headers are added using a shared cors.ts file. A Dockerfile and docker-compose file are provided for running Edge Runtime locally, and users can test their plugins on localhost using the ChatGPT UI. Finally, deployment to Fly.io is outlined.
Company
Supabase
Date published
May 15, 2023
Author(s)
Thor Schaeff
Word count
1194
Language
English
Hacker News points
None found.