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
                    
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.Mistral.HttpClients" Version="11.0.162" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Mistral.HttpClients" Version="11.0.162" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Mistral.HttpClients" />
                    
Project file
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.Mistral.HttpClients --version 11.0.162
                    
#r "nuget: Soenneker.Mistral.HttpClients, 11.0.162"
                    
#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.Mistral.HttpClients@11.0.162
                    
#: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.Mistral.HttpClients&version=11.0.162
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Mistral.HttpClients&version=11.0.162
                    
Install as a Cake Tool

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

alternate text is missing from this package README image 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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Updated Multiple NuGet packages