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

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

Update dependency Soenneker.Together.OpenApiClient to 11.0.132 (#407)