Soenneker.Azure.OpenAI.Client.Chat
4.0.1565
Prefix Reserved
dotnet add package Soenneker.Azure.OpenAI.Client.Chat --version 4.0.1565
NuGet\Install-Package Soenneker.Azure.OpenAI.Client.Chat -Version 4.0.1565
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.1565" />
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.1565" />
<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.1565
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.1565"
#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.1565
#: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.1565
#tool nuget:?package=Soenneker.Azure.OpenAI.Client.Chat&version=4.0.1565
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.854)
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.1565 | 40 | 2/12/2026 |
| 4.0.1564 | 31 | 2/10/2026 |
| 4.0.1563 | 38 | 2/10/2026 |
| 4.0.1562 | 95 | 2/10/2026 |
| 4.0.1561 | 90 | 2/5/2026 |
| 4.0.1560 | 108 | 2/4/2026 |
| 4.0.1559 | 102 | 1/28/2026 |
| 4.0.1558 | 141 | 1/22/2026 |
| 4.0.1557 | 90 | 1/22/2026 |
| 4.0.1556 | 115 | 1/21/2026 |
| 4.0.1555 | 162 | 1/19/2026 |
| 4.0.1554 | 100 | 1/18/2026 |
| 4.0.1553 | 146 | 1/14/2026 |
| 4.0.1552 | 93 | 1/13/2026 |
| 4.0.1551 | 98 | 1/13/2026 |
| 4.0.1550 | 105 | 1/13/2026 |
| 4.0.1549 | 92 | 1/12/2026 |
| 4.0.1548 | 93 | 1/12/2026 |
| 4.0.1547 | 117 | 1/8/2026 |
| 4.0.1546 | 99 | 1/8/2026 |
Loading failed