Paul Krill
Editor at Large

Microsoft releases official OpenAI library for .NET

news
02 Oct 20242 mins
Artificial IntelligenceCloud ComputingGenerative AI

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.

Authentic Office: Professional Black IT Programmer Working on Desktop Computer. Male Website Developer and Software Engineer Developing App, Video Game. Terminal with Coding Programming Language
Credit: Gorodenkoff / Shutterstock

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 <AsyncEnumerable<T>, 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.

Exit mobile version