This is a quickstart for sample for creating ChatGPT Plugin using GitHub Codespaces, Visual Studio or VS Code, and Azure. The sample includes templates to deploy the plugin to Azure Container Apps using the Azure Developer CLI. To gain access to ChatGPT plugins, join waitlist here!
- 📤 One-click setup: Open a new Codespace, giving you a fully configured cloud developer environment.
- 🪄 Make an API: Add routes in
Program.cs
, done in a few minutes even without ASP.NET Core minimal API experience, thanks to GitHub Copilot. ▶️ Run, one-click again: Use VS or VS Code's built-in Run command and open the forwarded port 8000 in your browser.- 💬 Test in ChatGPT: Copy the URL (make sure its public) and paste it in ChatGPT's Develop your own plugin flow.
- 🔄 Iterate quickly: Codespaces updates the server on each save, and VS Code's debugger lets you dig into the code execution.
-
Click here to open in GitHub Codespaces
-
Open Codespaces Ports tab, right click 8000, and make it public.
-
Copy the Codesapces address for port 8000
-
Open Chat GPT and add the plugin with the Codespaces address
-
Run a query for 'hiking boots'
-
Click here to open in Dev Container
-
Hit F5 to start the API
-
Open Chat GPT and add the plugin with
localhost:8000
-
Run a query for 'hiking boots'
- Clone the repo to your local machine
git clone https://github.com/timheuer/openai-plugin-aspnetcore
- Open repo in Visual Studio or VS Code
- Hit F5 to start the API
- Open Chat GPT and add the plugin with
localhost:8000
- Run a query for 'hiking boots'
NOTE: If you are running locally, then you first need to install the Azure Developer CLI
- Open a terminal
- Run
azd auth login
- Run
azd up
- Copy the endpoint printed to the terminal
- Open Chat GPT and add the plugin with that endpoint
- Run a query for 'hiking boots'
NOTE: Due to a security restriction Codespaces in the browser may not work for you. If you see an error when running the following commands, then please open the project with VS Code by choosing the Connect to Codespace option.
- Fork this repo to your own account
- Open your fork in Codespaces, Dev Container or Local
- Open a terminal
- Run
azd auth login
- Run
azd pipeline config
- Click on the printed actions link. Scroll to the bottom of the logs to find the endpoint.
- Open Chat GPT and add the plugin with that endpoint
- Run a query for 'hiking boots'