Microsoft is heralding the arrival of an official OpenAI library for .NET builders. The OpenAI library helps the whole OpenAI API and OpenAI’s newest flagship mannequin, GPT-4o, which may purpose throughout audio, imaginative and prescient, and textual content in actual time.
Introduced June 6 and obtainable now in a primary beta, the OpenAI .NET API library is accessible from NuGet.
Ensuing from Microsoft’s collaboration with OpenAI, the OpenAI .NET API library offers sync and async entry to the OpenAI REST API from .NET purposes. It helps capabilities together with Assistants v2, for constructing AI assistants inside purposes, and Chat Completions, for taking a listing of messages as enter and returning a mannequin message. The library contains extensibility that permits the neighborhood to construct libraries on high and entry to streaming completions by way of IAsyncEnumerable<T>
.
The OpenAI .NET API library is supported on GitHub and might be saved updated with the newest options from OpenAI, Microsoft stated. Work will proceed in coming months to assemble suggestions, enhance the library, and supply a steady NuGet package deal. The OpenAI .NET API library is appropriate with .NET Customary 2.0 purposes. Nevertheless, some code examples within the OpenAI .NET API library doc would possibly rely upon newer language options. Builders will want an API key to name the OpenAI REST API.
Microsoft final month introduced investments to develop the AI ecosystem for .NET builders. AI consideration included end-to-end situations for constructing AI-enabled purposes, embracing the AI ecosystem, and integration with cloud providers.
Copyright © 2024 IDG Communications, Inc.