Soenneker.Mistral.HttpClients
11.0.162
Prefix Reserved
dotnet add package Soenneker.Mistral.HttpClients --version 11.0.162
NuGet\Install-Package Soenneker.Mistral.HttpClients -Version 11.0.162
<PackageReference Include="Soenneker.Mistral.HttpClients" Version="11.0.162" />
<PackageVersion Include="Soenneker.Mistral.HttpClients" Version="11.0.162" />
<PackageReference Include="Soenneker.Mistral.HttpClients" />
paket add Soenneker.Mistral.HttpClients --version 11.0.162
#r "nuget: Soenneker.Mistral.HttpClients, 11.0.162"
#:package Soenneker.Mistral.HttpClients@11.0.162
#addin nuget:?package=Soenneker.Mistral.HttpClients&version=11.0.162
#tool nuget:?package=Soenneker.Mistral.HttpClients&version=11.0.162
Soenneker.Mistral.HttpClients
Provides a cached, authenticated HttpClient for the Mistral API.
Installation
dotnet add package Soenneker.Mistral.HttpClients
Configuration
{
"Mistral": {
"ApiKey": "your-api-key"
}
}
Mistral:ClientBaseUrl can override the default https://api.mistral.ai endpoint. Mistral:AuthHeaderName and Mistral:AuthHeaderValueTemplate can override the default Authorization: Bearer {token} header.
Usage
using Soenneker.Mistral.HttpClients.Abstract;
using Soenneker.Mistral.HttpClients.Registrars;
services.AddMistralOpenApiHttpClientAsSingleton();
IMistralOpenApiHttpClient mistral = serviceProvider
.GetRequiredService<IMistralOpenApiHttpClient>();
HttpClient client = await mistral.Get(cancellationToken);
Do not dispose the returned HttpClient; the registered provider owns it. Disposing the provider removes the cached client.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.914)
- Soenneker.Utils.HttpClientCache (>= 11.0.2144)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Mistral.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Mistral.OpenApiClientUtil
Provides a configured Mistral API client and reuses it for the registered service lifetime. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.162 | 5,644 | 11/3/2026 |
| 11.0.161 | 571 | 11/3/2026 |
| 11.0.160 | 50 | 11/3/2026 |
| 11.0.159 | 50 | 11/3/2026 |
| 11.0.158 | 59 | 11/3/2026 |
| 11.0.157 | 7,067 | 10/27/2026 |
| 11.0.156 | 117 | 10/27/2026 |
| 11.0.155 | 141 | 10/26/2026 |
| 11.0.154 | 104 | 10/26/2026 |
| 11.0.153 | 142 | 10/26/2026 |
| 4.0.152 | 216 | 10/15/2026 |
| 4.0.151 | 97 | 10/14/2026 |
| 4.0.149 | 111 | 10/14/2026 |
| 4.0.148 | 116 | 10/14/2026 |
| 4.0.147 | 113 | 10/14/2026 |
| 4.0.141 | 106 | 10/13/2026 |
| 4.0.140 | 105 | 10/13/2026 |
| 4.0.137 | 115 | 10/12/2026 |
| 4.0.136 | 142 | 10/12/2026 |
| 4.0.135 | 118 | 10/12/2026 |
Updated Multiple NuGet packages