OpenAI-DotNet  by RageAgainstThePixel

.NET SDK for OpenAI RESTful API

created 4 years ago
753 stars

Top 47.1% on sourcepulse

GitHubView on GitHub
Project Summary

This C# library provides a .NET client for interacting with the OpenAI RESTful API, targeting developers building applications that leverage AI models for tasks like text generation, image creation, and data analysis. It offers a comprehensive interface to OpenAI's various services, including chat completions, embeddings, fine-tuning, and the newer Assistants and Realtime APIs.

How It Works

The library abstracts the complexities of making HTTP requests to the OpenAI API, handling authentication, request formatting, and response parsing. It uses a fluent API design, allowing developers to chain method calls to construct API requests and process responses. Key features include support for streaming responses, tool usage, and structured output generation, enabling more interactive and sophisticated AI integrations.

Quick Start & Requirements

Highlighted Details

  • Comprehensive support for OpenAI's latest APIs, including Assistants, Threads, and Realtime.
  • Built-in handling for streaming responses, tool calls, and structured/JSON output.
  • Flexible authentication options, including environment variables, configuration files, and direct key passing.
  • Support for Azure OpenAI deployments and Azure Active Directory authentication.

Maintenance & Community

The project is actively maintained by RageAgainstThePixel and has a history of forking from OpenAI-API-dotnet, indicating community involvement and evolution.

Licensing & Compatibility

The library is released under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The Realtime and Assistants APIs are noted as beta features, subject to breaking changes. Users should consult the official OpenAI documentation for the most up-to-date API specifications and potential changes.

Health Check
Last commit

4 weeks ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
4
Star History
22 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.