together

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 9 Imported by: 0

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