Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Create an ai-plugin.json file for ChatGPT to interact with the API #2790

Open
batpad opened this issue May 17, 2023 · 0 comments
Open

Create an ai-plugin.json file for ChatGPT to interact with the API #2790

batpad opened this issue May 17, 2023 · 0 comments
Labels
feature New feature master ticket

Comments

@batpad
Copy link
Contributor

batpad commented May 17, 2023

(technically something we'd implement in the API code, but creating the issue here for more visibility)

ChatGPT has introduced a concept of "Plugins": https://platform.openai.com/docs/plugins/introduction

To create a "plugin", one needs to create an ai-plugin.json file and serve it at https://yourdomain.com/.well-known/ai-plugin.json . This JSON file will contain an "AI-readable" representation of your API, essentially telling an LLM how to query your API, etc. One can then connect ChatGPT to your API and it would attempt to use the API where appropriate to answer questions, etc.

A simple example of an ai-plugin.json file: https://github.com/openai/plugins-quickstart/blob/main/.well-known/ai-plugin.json

We should be able to mostly point it at our OpenAPI API spec definition, and have it mostly infer usage from there. It would greatly benefit from improved documentation describing each endpoint and property returned, etc. - perhaps this would be good incentive for us to also improve our API docs.

This seems like a reasonably low-lift thing to do to be able to start experimenting with using ChatGPT to "query GO". Would love to do this before / during our meet-up, to be able to do some initial experiments and have some discussions around this.

cc @ypyelab @LukeCaley

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature master ticket
Projects
None yet
Development

No branches or pull requests

1 participant