News

Microsoft Ships Stable Versions of OpenAI Libraries for .NET and Azure

Further leveraging the relationship that vaulted Microsoft and OpenAI into leadership positions in the AI era, Microsoft this week announced stable versions of two new OpenAI libraries.

Those would be the official OpenAI library for .NET (the OpenAI NuGet package) and the companion stable release version of the Azure OpenAI library for .NET project parked on GitHub (called Azure.AI.OpenAI on NuGet).

OpenAI .NET API library
[Click on image for larger view.] OpenAI .NET API Library (source: Microsoft).
Azure OpenAI client library for .NET
[Click on image for larger view.] Azure OpenAI Client Library for .NET (source: Microsoft).

"Back in June, we launched the first beta of the OpenAI library for .NET, empowering developers to integrate advanced AI models into their applications," Microsoft's .NET Team said in an Oct. 1 post. "Today, we are excited to share that the stable release of the official OpenAI library for .NET is now live. This release ensures a smooth and reliable integration experience for developers working with OpenAI and Azure OpenAI services in their .NET applications."

Its purpose is to provide tools to simplify integrating OpenAI's cutting-edge models into .NET applications, offering developers a streamlined experience with features including, in Microsoft's words:

  • Full OpenAI REST API support: Includes Assistants v2 and Chat Completions, enabling flexible and advanced interactions.
  • Support for latest models: OpenAI's latest flagship models, including GPT-4o, GPT-4o mini, o1-preview, and o1-mini, are fully supported, ensuring developers have access to cutting-edge AI capabilities.
  • Extensibility: The library is designed with extensibility in mind, allowing the community to build additional libraries on top of it.
  • Sync and async APIs: These ensure developers have the flexibility to use synchronous or asynchronous patterns depending on their application's needs.
  • Streaming completions: Access to streaming completions via IAsyncEnumerable, offering more dynamic interaction models.
  • Quality-of-life improvements: Numerous improvements have been made throughout the beta cycle based on community feedback.
  • .NET Standard 2.0 compatibility: This library, written in C#, supports all .NET variants that implement .NET Standard 2.0, ensuring compatibility with the latest .NET platforms.

Its GitHub repo explains how to work with Azure OpenAI:

For Azure OpenAI scenarios use the Azure SDK and more specifically the Azure OpenAI client library for .NET.

The Azure OpenAI client library for .NET is a companion to this library and all common capabilities between OpenAI and Azure OpenAI share the same scenario clients, methods, and request/response types. It is designed to make Azure specific scenarios straightforward, with extensions for Azure-specific concepts like Responsible AI content filter results and On Your Data integration.

The Azure offering was the subject of its own blog post, which you can read here.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube