openai  by betalgo

.NET SDK for OpenAI API access

created 3 years ago
2,979 stars

Top 16.4% on sourcepulse

GitHubView on GitHub
Project Summary

This .NET library provides easy integration with OpenAI's API for developers building AI-powered applications. It offers a comprehensive set of features for interacting with various OpenAI models, including chat completions and real-time capabilities, simplifying the process of embedding advanced AI functionalities into .NET projects.

How It Works

The library offers a clean, object-oriented interface for interacting with the OpenAI API. It supports both direct instantiation and dependency injection for seamless integration into .NET applications. Key features include support for various models, chat completion requests with message history, and optional parameters for fine-tuning responses. The recent addition of a Realtime API implementation and compatibility with Microsoft.Extensions.AI enhance its flexibility and integration potential.

Quick Start & Requirements

  • Install the core library via NuGet: Install-Package Betalgo.Ranul.OpenAI
  • Install the experimental utilities library: Install-Package Betalgo.OpenAI.Utilities
  • Requires an OpenAI API key.
  • Documentation and samples are available in the repository.

Highlighted Details

  • Supports .NET 9 and recent versions of Microsoft.Extensions.AI.
  • Includes a playground sample project for demonstration.
  • Offers both direct API key usage and secure integration via User Secrets.
  • Features a Realtime API implementation and compatibility with other OpenAI SDKs.

Maintenance & Community

The project is community-driven with contributions from various individuals and sponsors. Links to community channels and social media for Betalgo and the lead developer, Tolga Kayhan, are provided.

Licensing & Compatibility

The library is provided as a community library. Specific licensing details are not explicitly stated in the README, but it is designed for integration into .NET applications, including those using the official OpenAI library or Semantic Kernel.

Limitations & Caveats

Not all methods have been thoroughly tested or documented due to time constraints. Users are advised to use a separate OpenAI account for experimentation, as some test methods may have unintended consequences like file deletion or model modification. The Utilities library may remain broken for a period.

Health Check
Last commit

6 days ago

Responsiveness

1 day

Pull Requests (30d)
8
Issues (30d)
5
Star History
42 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.