Skip to content

Commit 5190189

Browse files
committed
start of blog
1 parent 33b2e7e commit 5190189

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: eventualCloud Part 1 - Philosophy
3+
description: Eventual Cloud Part 1 - Philosophy
4+
slug: eventualCloud-OpenAI-ChatGPT-Plugin
5+
authors:
6+
- name: Sam Sussman
7+
title: Co-creator of Eventual
8+
url: https://github.com/thantos
9+
image_url: https://avatars.githubusercontent.com/u/289213?v=4
10+
tags: [eventual, cloud, ai, serverless, chatgpt, plugin, openai, openapi]
11+
image: https://i.imgur.com/dVLQ8En.png
12+
hide_table_of_contents: false
13+
---
14+
15+
# Eventual Cloud + OpenAI Chat GPT Plugin
16+
17+
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.
18+
19+
Eventual Cloud provides a fully serverless framework for building plugins
20+
21+
## Anatomy of a OpenAI Chat Plugin
22+
23+
An OpenAI Chat Plugin needs 3 things to operate (find all of the details [here](https://platform.openai.com/docs/plugins/getting-started)):
24+
25+
1. `/.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-known` url and will be used when registering and installing the plugin.
26+
2. OpenAPI 3 Specification - [OpenAPI 3 Specification](https://swagger.io/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.url` in the `ai-plugin.json` file.
27+
3. Rest API - Finally the REST API described in the OpenAPI Specification must be available at the url in the OpenAPI `servers` array.
28+
29+
## Getting Started
30+
31+
This blog will start an OpenAI Plugin from scratch. There is a complete version in [eventual-examples](https://github.com/functionless/eventual-examples/tree/main/examples/open-ai-chat-plugin).
32+
33+
1. Create an EventualCloud project.
34+
2. Create the ai-plugin endpoint
35+
3. Create the OpenAPI Spec
36+
4. Create our plugin operations
37+
5. Describe the operations for Open AI
38+
6. Test the Plugin Locally with Lang Chain
39+
7. Test the Plugin locally with ChatGPT
40+
8. Deploy the Plugin
41+
42+
### Create An Eventual Cloud Project

0 commit comments

Comments
 (0)