together

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package together provides Together AI integration for the LLM gateway.

Index

Constants

This section is empty.

Variables

View Source
var Registration = providers.Registration{
	Type: "together",
	New:  New,
	Discovery: providers.DiscoveryConfig{
		DefaultBaseURL: defaultBaseURL,
	},
}

Registration provides factory registration for the Together AI provider.

Functions

func New

New creates a new Together AI provider.

Types

type Provider

type Provider struct {
	*openai.ChatCompatible
}

Provider implements Together AI's OpenAI-compatible API through the shared chat-centric adapter: chat completions, embeddings, and passthrough go upstream unchanged, and Responses requests are translated through chat completions because Together's native /responses beta rejects many of its serverless models. Only the model listing differs (see ListModels).

func (*Provider) ListModels

func (p *Provider) ListModels(ctx context.Context) (*core.ModelsResponse, error)

ListModels returns Together's model catalog with the type, context length, display name, and token prices its listing carries. Models of a type the gateway cannot serve are skipped; models without a type are kept.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL