Home / Companies / Supabase / Blog / Post Details
Content Deep Dive

Building ChatGPT Plugins with Supabase Edge Runtime

Blog post from Supabase

Post Details
Company
Date Published
Author
Thor Schaeff
Word Count
1,194
Language
English
Hacker News Points
-
Summary

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.