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

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

Updated Multiple NuGet packages