Documentation
¶
Overview ¶
Package together provides Together AI integration for the LLM gateway.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
func New(cfg providers.ProviderConfig, opts providers.ProviderOptions) core.Provider
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 ¶
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.