This directory contains starter projects and samples for developing plugins that extend the capabilities of ChatGPT and other OpenAI-compatible services.
The directory includes two main projects:
A customized version of the Semantic Kernel ChatGPT plugin starter, which provides:
- Ready-to-use template for creating ChatGPT plugins using C# and Semantic Kernel
- Azure Function implementation for hosting plugin endpoints
- OpenAPI specification for plugin discovery and integration
- Authentication mechanisms for secure plugin usage
- Sample skills that can be extended or customized
A Semantic Kernel C# Hello World Starter project for testing plugins with OpenAI:
- Console application for local testing of plugins
- Integration with Semantic Kernel for plugin execution
- Example code for connecting to OpenAI services
- Utility methods for validating plugin functionality
- .NET 6.0 SDK or later
- Azure subscription (for deploying the Azure Function)
- OpenAI API key or Azure OpenAI Service access
- (Optional) Visual Studio 2022 or Visual Studio Code
- Navigate to the
sk-csharp-chatgpt-plugin
directory - Follow the instructions in the project's README to:
- Configure API keys and endpoints
- Build and run the Azure Function locally
- Deploy to Azure (optional)
- Register with ChatGPT as a plugin
- Navigate to the
sk-csharp-tester
directory - Configure your API settings in the project
- Run the application to test plugin functionality locally
- Define your plugin's functionality: Determine what capabilities you want to add to ChatGPT
- Implement as Semantic Kernel skills: Create C# classes that implement the desired functionality
- Configure the OpenAPI specification: Update the plugin manifest and API endpoints
- Test locally using the sk-csharp-tester project
- Deploy and register: Deploy to Azure and register with ChatGPT