Soenneker.Together.OpenApiClientUtil
11.0.278
Prefix Reserved
dotnet add package Soenneker.Together.OpenApiClientUtil --version 11.0.278
NuGet\Install-Package Soenneker.Together.OpenApiClientUtil -Version 11.0.278
<PackageReference Include="Soenneker.Together.OpenApiClientUtil" Version="11.0.278" />
<PackageVersion Include="Soenneker.Together.OpenApiClientUtil" Version="11.0.278" />
<PackageReference Include="Soenneker.Together.OpenApiClientUtil" />
paket add Soenneker.Together.OpenApiClientUtil --version 11.0.278
#r "nuget: Soenneker.Together.OpenApiClientUtil, 11.0.278"
#:package Soenneker.Together.OpenApiClientUtil@11.0.278
#addin nuget:?package=Soenneker.Together.OpenApiClientUtil&version=11.0.278
#tool nuget:?package=Soenneker.Together.OpenApiClientUtil&version=11.0.278
Soenneker.Together.OpenApiClientUtil
Provides lazily initialized, cached access to Together AI's generated OpenAPI client.
Installation
dotnet add package Soenneker.Together.OpenApiClientUtil
Configuration
{
"Together": {
"ApiKey": "your-api-key"
}
}
Registration
using Soenneker.Together.OpenApiClientUtil.Registrars;
services.AddTogetherOpenApiClientUtilAsScoped();
Scoped registration lets the generated-client wrapper follow the current scope while its authenticated HTTP provider remains singleton. Use AddTogetherOpenApiClientUtilAsSingleton() when the wrapper itself should be application-wide.
Usage
using Soenneker.Together.OpenApiClient;
using Soenneker.Together.OpenApiClient.Models;
using Soenneker.Together.OpenApiClientUtil.Abstract;
public sealed class TogetherService
{
private readonly ITogetherOpenApiClientUtil _clients;
public TogetherService(ITogetherOpenApiClientUtil clients)
{
_clients = clients;
}
public async ValueTask<WhoamiResponse?> GetAccount(CancellationToken cancellationToken)
{
TogetherOpenApiClient client = await _clients.Get(cancellationToken);
return await client.Whoami.GetAsync(cancellationToken: cancellationToken);
}
}
Do not dispose the generated client returned by Get(). The utility owns its cached wrapper, while the registered HTTP provider owns the underlying HttpClient.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Together.HttpClients (>= 11.0.180)
- Soenneker.Together.OpenApiClient (>= 11.0.132)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.278 | 52 | 11/21/2026 |
| 11.0.277 | 57 | 11/19/2026 |
| 11.0.276 | 46 | 11/19/2026 |
| 11.0.275 | 41 | 11/19/2026 |
| 11.0.274 | 50 | 11/18/2026 |
| 11.0.273 | 46 | 11/18/2026 |
| 11.0.272 | 47 | 11/18/2026 |
| 11.0.270 | 46 | 11/18/2026 |
| 11.0.269 | 78 | 11/17/2026 |
| 11.0.268 | 85 | 11/17/2026 |
| 11.0.267 | 91 | 11/15/2026 |
| 11.0.266 | 82 | 11/15/2026 |
| 11.0.265 | 96 | 11/15/2026 |
| 11.0.264 | 85 | 11/14/2026 |
| 11.0.263 | 97 | 11/11/2026 |
| 11.0.262 | 90 | 11/11/2026 |
| 11.0.261 | 84 | 11/11/2026 |
| 11.0.260 | 85 | 11/11/2026 |
| 11.0.259 | 83 | 11/11/2026 |
| 11.0.258 | 99 | 11/5/2026 |
Update dependency Soenneker.Together.OpenApiClient to 11.0.132 (#407)