Soenneker.Azure.OpenAI.Client.Chat
4.0.1574
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Azure.OpenAI.Client.Chat --version 4.0.1574
NuGet\Install-Package Soenneker.Azure.OpenAI.Client.Chat -Version 4.0.1574
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Azure.OpenAI.Client.Chat" Version="4.0.1574" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Azure.OpenAI.Client.Chat" Version="4.0.1574" />
<PackageReference Include="Soenneker.Azure.OpenAI.Client.Chat" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Azure.OpenAI.Client.Chat --version 4.0.1574
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Azure.OpenAI.Client.Chat, 4.0.1574"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Azure.OpenAI.Client.Chat@4.0.1574
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Azure.OpenAI.Client.Chat&version=4.0.1574
#tool nuget:?package=Soenneker.Azure.OpenAI.Client.Chat&version=4.0.1574
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.OpenAI.Client.Chat
An async thread-safe singleton for the Azure OpenAI Chat (completions) client
This library provides an implementation for interacting with Azure's OpenAI service. It allows you to configure and utilize a ChatClient to perform various tasks using OpenAI's models.
For the direct from OpenAI version of this: Soenneker.OpenAI.Client.Chat
Installation
dotnet add package Soenneker.Azure.OpenAI.Client.Chat
Register:
builder.services.AddAzureOpenAIChatClientAsSingleton();
IConfiguration values:
"Azure:OpenAI:Chat:Deployment"
"Azure:OpenAI:ApiKey"
"Azure:OpenAI:Uri"
Usage
public class OpenAIService
{
private readonly IAzureOpenAIChatClient _chatClient;
public OpenAIService(IAzureOpenAIChatClient chatClient)
{
_chatClient = chatClient;
}
public async ValueTask<string> Chat(string prompt, CancellationToken cancellationToken = default)
{
var client = await _chatClient.Get(cancellationToken);
ChatCompletion completion = await client.CompleteChatAsync(prompt);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Azure.OpenAI.Client (>= 4.0.864)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.1575 | 0 | 3/4/2026 |
| 4.0.1574 | 24 | 3/4/2026 |
| 4.0.1573 | 819 | 2/28/2026 |
| 4.0.1572 | 108 | 2/28/2026 |
| 4.0.1571 | 244 | 2/27/2026 |
| 4.0.1570 | 82 | 2/27/2026 |
| 4.0.1569 | 86 | 2/26/2026 |
| 4.0.1568 | 1,213 | 2/22/2026 |
| 4.0.1567 | 309 | 2/21/2026 |
| 4.0.1566 | 104 | 2/20/2026 |
| 4.0.1565 | 224 | 2/12/2026 |
| 4.0.1564 | 91 | 2/10/2026 |
| 4.0.1563 | 98 | 2/10/2026 |
| 4.0.1562 | 115 | 2/10/2026 |
| 4.0.1561 | 103 | 2/5/2026 |
| 4.0.1560 | 116 | 2/4/2026 |
| 4.0.1559 | 110 | 1/28/2026 |
| 4.0.1558 | 147 | 1/22/2026 |
| 4.0.1557 | 98 | 1/22/2026 |
| 4.0.1556 | 122 | 1/21/2026 |
Loading failed