Microsoft releases official OpenAI library for .NET

Microsoft has released its official OpenAI library for .NET, with the goal of ensuring a smooth, reliable integration experience for developers working with OpenAI and Azure OpenAI services in .NET applications.

Announced October 1, the now-stable library follows a beta release published in June. Installable via NuGet, the OpenAI library for .NET provides full OpenAI REST API support and full support for OpenAI flagship models including GPT-4o, GPT-4o mini, o1-preview, and o1-mini.

Other capabilities include:

  • Extensibility, allowing the community to build additional libraries.
  • Sync and async APIs, providing flexibility to use asynchronous or synchronous patterns depending on an application’s needs.
  • Streaming completions, for accessing these completions via , for more dynamic interaction models.
  • Numerous quality-of-life improvements.
  • .NET 2.0 Standard 2.0 compatibility, via a library written in C#.

Supported on GitHub, the open source .NET library provides supported integration with OpenAI and Azure OpenAI and complements OpenAI’s libraries for Python and TypeScript/JavaScript developers, Microsoft said.

Go to Source

Author: