Soenneker.Cohere.HttpClients
11.0.210
Prefix Reserved
dotnet add package Soenneker.Cohere.HttpClients --version 11.0.210
NuGet\Install-Package Soenneker.Cohere.HttpClients -Version 11.0.210
<PackageReference Include="Soenneker.Cohere.HttpClients" Version="11.0.210" />
<PackageVersion Include="Soenneker.Cohere.HttpClients" Version="11.0.210" />
<PackageReference Include="Soenneker.Cohere.HttpClients" />
paket add Soenneker.Cohere.HttpClients --version 11.0.210
#r "nuget: Soenneker.Cohere.HttpClients, 11.0.210"
#:package Soenneker.Cohere.HttpClients@11.0.210
#addin nuget:?package=Soenneker.Cohere.HttpClients&version=11.0.210
#tool nuget:?package=Soenneker.Cohere.HttpClients&version=11.0.210
Soenneker.Cohere.HttpClients
Provides an owned, bearer-authenticated HttpClient for Cohere's generated OpenAPI client.
Installation
dotnet add package Soenneker.Cohere.HttpClients
Configuration
{
"Cohere": {
"ApiKey": "your-api-key",
"ClientBaseUrl": "https://api.cohere.com",
"AuthHeaderName": "Authorization",
"AuthHeaderValueTemplate": "Bearer {token}"
}
}
ApiKey is required. The other values show their defaults. {token} is replaced with the configured key. Keep the credential in a secret provider.
Registration and usage
using Soenneker.Cohere.HttpClients.Abstract;
using Soenneker.Cohere.HttpClients.Registrars;
services.AddCohereOpenApiHttpClientAsSingleton();
HttpClient httpClient = await clientProvider.Get(cancellationToken);
Get returns the same configured client for the provider's lifetime. Soenneker.Cohere.OpenApiClientUtil is the normal entry point for typed Cohere operations.
The provider owns its cache entry. Do not dispose the returned HttpClient directly. Let dependency injection dispose ICohereOpenApiHttpClient, which removes and disposes the client. Scoped providers use isolated cache entries, so one scope cannot tear down another provider's client.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.921)
- Soenneker.Utils.HttpClientCache (>= 11.0.2188)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Cohere.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Cohere.OpenApiClientUtil
Provides a cached, bearer-authenticated Cohere OpenAPI client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.210 | 57 | 12/3/2026 |
| 11.0.209 | 62 | 12/3/2026 |
| 11.0.208 | 63 | 12/3/2026 |
| 11.0.207 | 54 | 12/3/2026 |
| 11.0.206 | 61 | 12/3/2026 |
| 11.0.205 | 60 | 12/2/2026 |
| 11.0.204 | 63 | 12/2/2026 |
| 11.0.203 | 58 | 12/2/2026 |
| 11.0.202 | 61 | 12/2/2026 |
| 11.0.201 | 84 | 12/2/2026 |
| 11.0.200 | 67 | 12/2/2026 |
| 11.0.199 | 65 | 12/2/2026 |
| 11.0.198 | 80 | 12/1/2026 |
| 11.0.197 | 98 | 12/1/2026 |
| 11.0.196 | 86 | 12/1/2026 |
| 11.0.195 | 102 | 12/1/2026 |
| 11.0.194 | 103 | 12/1/2026 |
| 11.0.193 | 92 | 11/30/2026 |
| 11.0.192 | 125 | 11/30/2026 |
| 11.0.191 | 106 | 11/30/2026 |
Updated Multiple NuGet packages