Soenneker.Together.HttpClients
11.0.180
Prefix Reserved
dotnet add package Soenneker.Together.HttpClients --version 11.0.180
NuGet\Install-Package Soenneker.Together.HttpClients -Version 11.0.180
<PackageReference Include="Soenneker.Together.HttpClients" Version="11.0.180" />
<PackageVersion Include="Soenneker.Together.HttpClients" Version="11.0.180" />
<PackageReference Include="Soenneker.Together.HttpClients" />
paket add Soenneker.Together.HttpClients --version 11.0.180
#r "nuget: Soenneker.Together.HttpClients, 11.0.180"
#:package Soenneker.Together.HttpClients@11.0.180
#addin nuget:?package=Soenneker.Together.HttpClients&version=11.0.180
#tool nuget:?package=Soenneker.Together.HttpClients&version=11.0.180
Soenneker.Together.HttpClients
Provides a cached HttpClient configured for Together AI's bearer-authenticated API.
Installation
dotnet add package Soenneker.Together.HttpClients
Configuration
{
"Together": {
"ApiKey": "your-api-key"
}
}
The default base URL is https://api.together.ai/v1/. Set Together:ClientBaseUrl to override it.
Requests use Authorization: Bearer {token} by default. For a different scheme, set Together:AuthHeaderName and Together:AuthHeaderValueTemplate; {token} is replaced with Together:ApiKey.
Registration
using Soenneker.Together.HttpClients.Registrars;
services.AddTogetherOpenApiHttpClientAsSingleton();
Use AddTogetherOpenApiHttpClientAsScoped() when the wrapper should follow the current scope. Each wrapper owns its cached client entry and removes that client when disposed.
Usage
using Soenneker.Together.HttpClients.Abstract;
HttpClient client = await togetherHttpClient.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync("models", cancellationToken);
response.EnsureSuccessStatusCode();
Reuse the returned client. Do not dispose it directly; the wrapper owns its cached client entry.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.919)
- Soenneker.Utils.HttpClientCache (>= 11.0.2164)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Together.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Together.OpenApiClientUtil
Provides lazily initialized, cached access to Together AI's generated OpenAPI client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.180 | 99 | 11/19/2026 |
| 11.0.179 | 82 | 11/19/2026 |
| 11.0.178 | 82 | 11/19/2026 |
| 11.0.177 | 92 | 11/18/2026 |
| 11.0.176 | 85 | 11/18/2026 |
| 11.0.173 | 138 | 11/15/2026 |
| 11.0.172 | 101 | 11/15/2026 |
| 11.0.170 | 137 | 11/11/2026 |
| 11.0.169 | 102 | 11/11/2026 |
| 11.0.168 | 104 | 11/11/2026 |
| 11.0.167 | 88 | 11/11/2026 |
| 11.0.166 | 92 | 11/11/2026 |
| 11.0.165 | 182 | 11/3/2026 |
| 11.0.164 | 102 | 11/3/2026 |
| 11.0.163 | 103 | 11/3/2026 |
| 11.0.162 | 95 | 11/3/2026 |
| 11.0.161 | 114 | 11/3/2026 |
| 11.0.159 | 224 | 10/27/2026 |
| 11.0.158 | 113 | 10/26/2026 |
| 11.0.157 | 98 | 10/26/2026 |
Updated Multiple NuGet packages