Hi!
Plugins are the hottest topics now, for both ChatGPT and Microsoft products like BingChat and Windows Copilot.
After learning and testing using Javascript and Python versions, I decided to create one in NET. I even talk several times about it in my podcast (in Spanish).
NET Pet Store ChatGPT Plugin Repository
And here is the repository with the working demo:
https://github.com/elbruno/OpenAI-Plugin-NET-Sample
This is a QuickStart for sample for creating ChatGPT Plugin programing in NET, using GitHub Codespaces, VS Code, and Azure.
To gain access to ChatGPT plugins, join waitlist here!
Run and Test Locally
- Open
src/OpenAI.PlugIn.NETSample/Program.cs
. Press [F5] To Start Debugging. Choose your preferred Debugger. - Once the project is compiled, the app should be running. A new browser will open with the URL [http://localhost:5100/swagger/index.html].
- Open ChatGPT. Select
GPT-4
, open the PlugIn Options. Open the PlugIn Store and select [Develop your own plugin] - Type [http://localhost:5100], and select [Find Manifest File]. ChatGPT will search for the manifest file at [http://localhost:5100/.well-known/ai-plugin.json] and load the plugin information. Select [Install LocalHost PlugIn]
- The PlugIn will now be enabled in ChatGPT
- We can now test the plug in. ChatGPT will use the Pet plugin for pets related questions.
Here is the plugin working in devMode in ChatGPT.
I’m working on adding CodeSpaces support to the repo, so no local development environment will be needed!
Happy coding!
Greetings
El Bruno
More posts in my blog ElBruno.com.
More info in https://beacons.ai/elbruno
Top comments (0)