OpenAI-DotNet  by RageAgainstThePixel

.NET SDK for OpenAI RESTful API

Created 4 years ago
755 stars

Top 46.0% 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

2 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
1
Star History
0 stars in the last 30 days

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of "Artificial Intelligence: A Modern Approach"; Research Director at Google).

python-openai-demos by pamelafox

0.5%
381
Python scripts for OpenAI API demos
Created 1 year ago
Updated 1 week ago
Feedback? Help us improve.