An unofficial .NET 7 SDK for OpenAI with a Blazor Server playground for testing and exploring the API.
Cledev.OpenAI is an unofficial .NET 7 SDK that provides a comprehensive client library for accessing OpenAI's APIs, including ChatGPT, DALL-E, Whisper, and completions. It solves the problem of integrating AI capabilities into .NET applications by offering a clean, type-safe interface with full API coverage and streaming support. The project also includes a Blazor Server playground for interactive testing and exploration.
.NET developers building applications that require AI features like chatbots, text generation, image creation, or audio transcription. It's ideal for those who prefer a native .NET client over REST calls or other SDKs.
Developers choose this SDK for its idiomatic .NET design, ease of use with dependency injection, and the included Blazor playground that accelerates testing. It offers a more integrated experience compared to manually calling OpenAI's REST API or using less feature-complete .NET libraries.
.NET 7 SDK for OpenAI with a Blazor Server playground
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports all major OpenAI endpoints including models, completions, ChatGPT, images, audio, files, and fine-tunes, as detailed in the API list, ensuring comprehensive integration options.
Enables streaming for chat and text completions, demonstrated in the code examples, allowing efficient handling of large responses without blocking.
Includes a Blazor Server playground with screenshots for testing API calls interactively, accelerating experimentation without coding overhead.
Uses strongly typed request and response objects for all endpoints, reducing errors, as seen in examples with specific models like ChatModel.Gpt35Turbo.
Simple setup via dependency injection with support for appsettings.json or environment variables, making integration straightforward in .NET applications.
Key features like ChatGPT-4 and Azure OpenAI support are marked as 'coming soon' in the README, limiting immediate use for advanced or enterprise scenarios.
As an unofficial SDK, it lacks the backing, warranties, and timely updates from OpenAI, posing risks for production-critical applications.
The playground is built with Blazor Server, which may add unnecessary complexity or be irrelevant for projects not using Blazor or preferring CLI tools.