Eventual Cloud is the best way to build many different types of services. In this blog, we'll show how to build an OpenAI Chat Plugin.
Eventual Cloud provides a fully serverless framework for building plugins
Anatomy of a OpenAI Chat Plugin
An OpenAI Chat Plugin needs 3 things to operate (find all of the details here):
/.well-known/ai-plugin.json- The Plugin Manifest defines details about what the plugin is and how it operates. This must be at a public/.well-knownurl and will be used when registering and installing the plugin.- OpenAPI 3 Specification - OpenAPI 3 Specification is used to describe the REST APIs that are available and provide descriptions of the APIs, request, response, and fields involved in the API. This file should be public and hosted at the location described in
api.urlin theai-plugin.jsonfile. - Rest API - Finally the REST API described in the OpenAPI Specification must be available at the url in the OpenAPI
serversarray.
Getting Started
This blog will start an OpenAI Plugin from scratch. There is a complete version in eventual-examples.
- Create an EventualCloud project.
- Create the ai-plugin endpoint
- Create the OpenAPI Spec
- Create our plugin operations
- Describe the operations for Open AI
- Test the Plugin Locally with Lang Chain
- Test the Plugin locally with ChatGPT
- Deploy the Plugin