Soenneker.Azure.OpenAI.Client.Chat 2.1.377

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Azure.OpenAI.Client.Chat --version 2.1.377                
NuGet\Install-Package Soenneker.Azure.OpenAI.Client.Chat -Version 2.1.377                
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="2.1.377" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Azure.OpenAI.Client.Chat --version 2.1.377                
#r "nuget: Soenneker.Azure.OpenAI.Client.Chat, 2.1.377"                
#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.
// Install Soenneker.Azure.OpenAI.Client.Chat as a Cake Addin
#addin nuget:?package=Soenneker.Azure.OpenAI.Client.Chat&version=2.1.377

// Install Soenneker.Azure.OpenAI.Client.Chat as a Cake Tool
#tool nuget:?package=Soenneker.Azure.OpenAI.Client.Chat&version=2.1.377                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.0.477 0 11/20/2024
3.0.476 0 11/20/2024
3.0.475 0 11/20/2024
3.0.474 0 11/20/2024
3.0.473 0 11/20/2024
3.0.472 0 11/20/2024
3.0.471 0 11/20/2024
3.0.470 0 11/20/2024
3.0.469 0 11/20/2024
3.0.468 0 11/20/2024
3.0.467 0 11/20/2024
3.0.466 0 11/20/2024
3.0.465 0 11/20/2024
3.0.464 0 11/20/2024
3.0.463 0 11/20/2024
3.0.462 0 11/20/2024
3.0.461 0 11/20/2024
3.0.460 0 11/20/2024
3.0.459 2 11/19/2024
3.0.458 4 11/19/2024
3.0.457 4 11/19/2024
3.0.456 6 11/19/2024
3.0.455 5 11/19/2024
3.0.454 5 11/19/2024
3.0.453 8 11/19/2024
3.0.452 7 11/19/2024
3.0.451 6 11/19/2024
3.0.450 18 11/19/2024
3.0.449 16 11/19/2024
3.0.448 21 11/19/2024
3.0.447 18 11/19/2024
3.0.446 19 11/19/2024
3.0.445 20 11/19/2024
3.0.444 25 11/19/2024
3.0.443 20 11/19/2024
3.0.442 19 11/19/2024
3.0.441 19 11/19/2024
3.0.440 65 11/15/2024
3.0.439 65 11/15/2024
3.0.438 57 11/15/2024
3.0.437 64 11/14/2024
3.0.436 63 11/14/2024
3.0.435 59 11/14/2024
3.0.434 62 11/14/2024
3.0.433 68 11/14/2024
3.0.432 61 11/14/2024
3.0.431 55 11/14/2024
3.0.430 59 11/14/2024
3.0.429 66 11/14/2024
3.0.428 66 11/14/2024
3.0.427 58 11/14/2024
3.0.426 59 11/14/2024
3.0.425 55 11/14/2024
3.0.424 64 11/14/2024
3.0.423 67 11/14/2024
3.0.422 58 11/14/2024
3.0.421 64 11/14/2024
3.0.420 58 11/14/2024
3.0.419 67 11/14/2024
3.0.418 66 11/14/2024
3.0.417 64 11/14/2024
3.0.416 62 11/14/2024
3.0.415 65 11/14/2024
3.0.414 63 11/14/2024
3.0.413 60 11/14/2024
3.0.412 61 11/14/2024
3.0.411 66 11/14/2024
3.0.410 60 11/14/2024
3.0.409 59 11/14/2024
3.0.408 64 11/14/2024
2.1.407 67 11/13/2024
2.1.406 60 11/13/2024
2.1.405 62 11/13/2024
2.1.404 62 11/13/2024
2.1.403 58 11/13/2024
2.1.402 60 11/13/2024
2.1.401 61 11/13/2024
2.1.400 66 11/13/2024
2.1.399 60 11/13/2024
2.1.398 65 11/13/2024
2.1.397 59 11/13/2024
2.1.396 65 11/13/2024
2.1.395 61 11/13/2024
2.1.394 65 11/12/2024
2.1.393 68 11/12/2024
2.1.392 60 11/12/2024
2.1.391 62 11/12/2024
2.1.390 175 11/9/2024
2.1.389 71 11/9/2024
2.1.388 70 11/9/2024
2.1.387 65 11/9/2024
2.1.386 74 11/9/2024
2.1.385 73 11/9/2024
2.1.384 62 11/9/2024
2.1.383 74 11/9/2024
2.1.382 68 11/9/2024
2.1.381 66 11/9/2024
2.1.380 65 11/9/2024
2.1.379 71 11/8/2024
2.1.378 65 11/8/2024
2.1.377 65 11/8/2024
2.1.376 84 11/8/2024
2.1.375 68 11/8/2024
2.1.374 71 11/8/2024
2.1.373 64 11/8/2024
2.1.372 61 11/8/2024
2.1.371 67 11/8/2024
2.1.370 64 11/8/2024
2.1.369 65 11/8/2024
2.1.368 64 11/8/2024
2.1.367 63 11/8/2024
2.1.366 64 11/8/2024
2.1.365 65 11/8/2024
2.1.364 73 11/8/2024
2.1.363 62 11/8/2024
2.1.362 62 11/6/2024
2.1.361 62 11/6/2024
2.1.360 155 11/1/2024
2.1.359 59 11/1/2024
2.1.358 64 11/1/2024
2.1.357 61 11/1/2024
2.1.356 66 11/1/2024
2.1.355 56 11/1/2024
2.1.354 63 11/1/2024
2.1.353 62 11/1/2024
2.1.352 60 11/1/2024
2.1.351 81 10/29/2024
2.1.350 66 10/29/2024
2.1.349 60 10/29/2024
2.1.348 61 10/29/2024
2.1.347 68 10/29/2024
2.1.346 61 10/29/2024
2.1.345 63 10/29/2024
2.1.344 64 10/29/2024
2.1.343 61 10/29/2024
2.1.342 59 10/29/2024
2.1.341 63 10/29/2024
2.1.340 66 10/29/2024
2.1.339 68 10/29/2024
2.1.338 64 10/29/2024
2.1.337 63 10/29/2024
2.1.336 62 10/29/2024
2.1.335 65 10/29/2024
2.1.334 66 10/29/2024
2.1.333 60 10/29/2024
2.1.332 65 10/29/2024
2.1.331 70 10/28/2024
2.1.330 72 10/28/2024
2.1.329 64 10/28/2024
2.1.328 65 10/28/2024
2.1.327 213 10/27/2024
2.1.326 73 10/27/2024
2.1.325 68 10/27/2024
2.1.324 73 10/26/2024
2.1.323 68 10/26/2024
2.1.322 61 10/26/2024
2.1.321 67 10/26/2024
2.1.320 85 10/24/2024
2.1.319 117 10/22/2024
2.1.318 72 10/22/2024
2.1.317 68 10/22/2024
2.1.316 72 10/22/2024
2.1.315 78 10/22/2024
2.1.314 85 10/22/2024
2.1.313 68 10/22/2024
2.1.312 55 10/22/2024
2.1.311 58 10/22/2024
2.1.310 57 10/22/2024
2.1.309 93 10/17/2024
2.1.308 69 10/17/2024
2.1.307 68 10/17/2024
2.1.306 63 10/17/2024
2.1.305 116 10/15/2024
2.1.304 71 10/15/2024
2.1.303 71 10/15/2024
2.1.302 71 10/15/2024
2.1.301 69 10/14/2024
2.1.300 71 10/14/2024
2.1.299 83 10/12/2024
2.1.298 79 10/12/2024
2.1.297 69 10/12/2024
2.1.296 81 10/11/2024
2.1.295 77 10/11/2024
2.1.294 76 10/11/2024
2.1.293 70 10/11/2024
2.1.292 100 10/9/2024
2.1.291 75 10/9/2024
2.1.290 75 10/9/2024
2.1.289 71 10/9/2024
2.1.288 81 10/9/2024
2.1.287 76 10/8/2024
2.1.286 73 10/8/2024
2.1.285 74 10/8/2024
2.1.284 71 10/8/2024
2.1.283 75 10/8/2024
2.1.282 77 10/8/2024
2.1.281 72 10/8/2024
2.1.280 79 10/8/2024
2.1.279 75 10/8/2024
2.1.278 71 10/8/2024
2.1.277 82 10/8/2024
2.1.276 70 10/8/2024
2.1.275 152 10/3/2024
2.1.274 66 10/3/2024
2.1.273 62 10/3/2024
2.1.272 78 10/3/2024
2.1.271 77 10/3/2024
2.1.270 75 10/3/2024
2.1.269 75 10/3/2024
2.1.268 73 10/3/2024
2.1.267 70 10/3/2024
2.1.266 74 10/3/2024
2.1.265 78 10/3/2024
2.1.264 78 10/2/2024
2.1.263 72 10/2/2024
2.1.262 73 10/2/2024
2.1.261 81 10/2/2024
2.1.260 78 10/2/2024
2.1.259 80 10/2/2024
2.1.258 73 10/2/2024
2.1.257 74 10/2/2024
2.1.256 81 10/2/2024
2.1.255 158 10/1/2024
2.1.254 77 10/1/2024
2.1.253 74 10/1/2024
2.1.252 73 10/1/2024
2.1.251 82 10/1/2024
2.1.250 72 10/1/2024
2.1.249 46 10/1/2024
2.1.248 46 10/1/2024
2.1.247 51 10/1/2024
2.1.246 46 10/1/2024
2.1.245 52 9/30/2024
2.1.244 46 9/29/2024
2.1.243 47 9/29/2024
2.1.242 42 9/29/2024
2.1.241 45 9/29/2024
2.1.240 46 9/29/2024
2.1.239 43 9/29/2024
2.1.238 51 9/29/2024
2.1.237 47 9/29/2024
2.1.236 49 9/29/2024
2.1.235 47 9/29/2024
2.1.234 49 9/27/2024
2.1.233 42 9/27/2024
2.1.232 40 9/27/2024
2.1.231 49 9/27/2024
2.1.230 47 9/27/2024
2.1.229 43 9/27/2024
2.1.228 41 9/27/2024
2.1.227 48 9/27/2024
2.1.226 49 9/27/2024
2.1.225 45 9/27/2024
2.1.224 46 9/27/2024
2.1.223 44 9/27/2024
2.1.222 43 9/27/2024
2.1.221 51 9/26/2024
2.1.220 45 9/26/2024
2.1.219 51 9/26/2024
2.1.218 50 9/26/2024
2.1.217 46 9/26/2024
2.1.216 51 9/26/2024
2.1.215 48 9/26/2024
2.1.212 46 9/26/2024
2.1.211 43 9/26/2024
2.1.210 47 9/26/2024
2.1.209 44 9/26/2024
2.1.208 70 9/23/2024
2.1.207 44 9/23/2024
2.1.206 47 9/23/2024
2.1.205 39 9/23/2024
2.1.204 46 9/23/2024
2.1.203 46 9/23/2024
2.1.202 43 9/23/2024
2.1.201 41 9/23/2024
2.1.200 42 9/23/2024
2.1.199 45 9/23/2024
2.1.198 46 9/23/2024
2.1.197 49 9/23/2024
2.1.196 44 9/23/2024
2.1.195 46 9/23/2024
2.1.194 48 9/23/2024
2.1.193 41 9/23/2024
2.1.192 48 9/23/2024
2.1.191 44 9/23/2024
2.1.190 43 9/23/2024
2.1.189 43 9/23/2024
2.1.188 46 9/23/2024
2.1.187 47 9/23/2024
2.1.186 47 9/23/2024
2.1.185 52 9/18/2024
2.1.184 46 9/18/2024
2.1.183 82 9/18/2024
2.1.182 49 9/18/2024
2.1.181 50 9/18/2024
2.1.180 50 9/18/2024
2.1.179 49 9/18/2024
2.1.178 45 9/17/2024
2.1.177 53 9/17/2024
2.1.176 49 9/17/2024
2.1.175 47 9/17/2024
2.1.174 49 9/17/2024
2.1.173 53 9/17/2024
2.1.172 54 9/17/2024
2.1.171 50 9/17/2024
2.1.170 52 9/17/2024
2.1.169 50 9/17/2024
2.1.168 52 9/17/2024
2.1.167 49 9/17/2024
2.1.166 49 9/17/2024
2.1.165 47 9/17/2024
2.1.164 48 9/17/2024
2.1.163 49 9/17/2024
2.1.162 47 9/17/2024
2.1.161 71 9/17/2024
2.1.160 47 9/17/2024
2.1.159 50 9/17/2024
2.1.158 47 9/16/2024
2.1.157 56 9/16/2024
2.1.156 50 9/16/2024
2.1.155 54 9/16/2024
2.1.154 48 9/16/2024
2.1.153 92 9/12/2024
2.1.152 62 9/12/2024
2.1.151 58 9/12/2024
2.1.150 49 9/12/2024
2.1.149 56 9/12/2024
2.1.148 49 9/12/2024
2.1.146 54 9/11/2024
2.1.145 55 9/11/2024
2.1.144 54 9/11/2024
2.1.143 54 9/11/2024
2.1.142 52 9/11/2024
2.1.141 48 9/11/2024
2.1.140 51 9/11/2024
2.1.139 59 9/11/2024
2.1.138 54 9/11/2024
2.1.137 50 9/11/2024
2.1.136 52 9/11/2024
2.1.135 55 9/11/2024
2.1.134 85 9/11/2024
2.1.133 53 9/10/2024
2.1.132 49 9/10/2024
2.1.131 45 9/10/2024
2.1.130 45 9/10/2024
2.1.127 48 9/9/2024
2.1.126 45 9/9/2024
2.1.125 58 9/9/2024
2.1.124 48 9/9/2024
2.1.123 52 9/9/2024
2.1.122 51 9/9/2024
2.1.121 51 9/9/2024
2.1.120 45 9/9/2024
2.1.119 47 9/9/2024
2.1.118 88 9/7/2024
2.1.117 47 9/7/2024
2.1.116 60 9/6/2024
2.1.115 55 9/6/2024
2.1.114 52 9/6/2024
2.1.113 92 9/5/2024
2.1.112 50 9/5/2024
2.1.111 58 9/5/2024
2.1.110 53 9/5/2024
2.1.109 43 9/5/2024
2.1.108 49 9/5/2024
2.1.107 49 9/5/2024
2.1.106 49 9/5/2024
2.1.105 56 9/5/2024
2.1.104 53 9/4/2024
2.1.103 106 9/4/2024
2.1.102 50 9/3/2024
2.1.101 50 9/3/2024
2.1.100 52 9/3/2024
2.1.99 47 9/3/2024
2.1.98 54 9/3/2024
2.1.97 46 9/3/2024
2.1.96 45 9/3/2024
2.1.95 53 9/3/2024
2.1.94 47 9/3/2024
2.1.93 43 9/3/2024
2.1.92 46 8/30/2024
2.1.91 46 8/29/2024
2.1.90 42 8/29/2024
2.1.89 47 8/29/2024
2.1.88 45 8/29/2024
2.1.87 41 8/29/2024
2.1.86 118 8/26/2024
2.1.85 50 8/26/2024
2.1.84 53 8/26/2024
2.1.83 58 8/26/2024
2.1.82 62 8/24/2024
2.1.81 149 8/21/2024
2.1.80 79 8/21/2024
2.1.79 77 8/21/2024
2.1.78 71 8/21/2024
2.1.77 69 8/21/2024
2.1.76 65 8/21/2024
2.1.75 65 8/21/2024
2.1.74 78 8/20/2024
2.1.73 72 8/20/2024
2.1.72 71 8/20/2024
2.1.71 64 8/20/2024
2.1.70 65 8/20/2024
2.1.69 62 8/20/2024
2.1.68 57 8/20/2024
2.1.67 56 8/20/2024
2.1.66 58 8/20/2024
2.1.65 72 8/20/2024
2.1.64 69 8/20/2024
2.1.63 66 8/20/2024
2.1.62 73 8/19/2024
2.1.61 65 8/19/2024
2.1.60 116 8/15/2024
2.1.59 65 8/15/2024
2.1.58 64 8/15/2024
2.1.57 66 8/15/2024
2.1.56 67 8/15/2024
2.1.55 70 8/15/2024
2.1.54 62 8/14/2024
2.1.53 66 8/13/2024
2.1.52 63 8/13/2024
2.1.51 51 8/7/2024
2.1.50 49 8/7/2024
2.1.49 49 8/7/2024
2.1.48 44 8/7/2024
2.1.47 46 8/6/2024
2.1.46 35 8/6/2024
2.1.45 34 8/6/2024
2.1.44 38 8/6/2024
2.1.43 136 8/1/2024
2.1.42 51 8/1/2024
2.1.41 46 8/1/2024
2.1.40 51 8/1/2024
2.1.39 44 8/1/2024
2.1.38 46 8/1/2024
2.1.37 46 8/1/2024
2.1.36 44 8/1/2024
2.1.35 48 8/1/2024
2.1.34 109 7/25/2024
2.1.33 53 7/25/2024
2.1.32 102 7/25/2024
2.1.31 90 7/25/2024
2.1.30 55 7/25/2024
2.1.29 56 7/24/2024
2.1.28 52 7/24/2024
2.1.27 41 7/24/2024
2.1.26 42 7/24/2024
2.1.25 47 7/24/2024
2.1.24 51 7/24/2024
2.1.23 85 7/20/2024
2.1.22 56 7/20/2024
2.1.21 53 7/20/2024
2.1.20 56 7/20/2024
2.1.19 57 7/20/2024
2.1.18 132 7/14/2024
2.1.17 54 7/14/2024
2.1.16 50 7/14/2024
2.1.15 51 7/14/2024
2.1.14 52 7/14/2024
2.1.13 54 7/14/2024
2.1.12 52 7/14/2024
2.1.11 49 7/14/2024
2.1.10 47 7/14/2024
2.1.9 47 7/14/2024
2.1.8 54 7/12/2024
2.1.7 51 7/12/2024
2.1.6 52 7/12/2024
2.1.5 61 7/12/2024
2.1.4 52 7/12/2024
2.1.3 53 7/12/2024
2.1.2 52 7/12/2024
2.1.1 51 7/12/2024