Paul Krill
Editor at Large

Microsoft releases official OpenAI library for .NET

news
Oct 2, 20242 mins

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.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author