/plushcap/analysis/supabase/supabase-building-chatgpt-plugins-template

Building ChatGPT Plugins with Supabase Edge Runtime

What's this blog post about?

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

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.