Documentation
¶
Overview ¶
Package minimax provides a MiniMax LLM provider using the Anthropic-compatible API. MiniMax recommends their Anthropic-compatible endpoint for new integrations. Docs: https://platform.minimax.io/docs/api-reference/text-anthropic-api
Index ¶
Constants ¶
View Source
const ( ModelM27 = "MiniMax-M2.7" ModelM27Highspeed = "MiniMax-M2.7-highspeed" ModelM25 = "MiniMax-M2.5" ModelM25Highspeed = "MiniMax-M2.5-highspeed" ModelM21 = "MiniMax-M2.1" ModelM21Highspeed = "MiniMax-M2.1-highspeed" ModelM2 = "MiniMax-M2" )
Model ID constants for programmatic use.
Variables ¶
View Source
var ModelAliases = map[string]string{ "minimax": ModelM27, "minimax:fast": ModelM27, "minimax:2.7": ModelM27, "minimax:2.5": ModelM25, "minimax:2.1": ModelM21, "minimax:2": ModelM2, }
ModelAliases maps short alias names to full model IDs. Used by the auto package for provider-prefixed resolution (e.g., "minimax/fast").
Functions ¶
func DefaultOptions ¶
DefaultOptions returns the default options for MiniMax.
Types ¶
type Option ¶
type Option func(*Provider)
Option is a functional option for configuring the MiniMax provider.
func WithLLMOpts ¶
WithLLMOpts adds custom llm.Option configurations.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the MiniMax LLM backend via the Anthropic-compatible API.
func (*Provider) CreateStream ¶
Click to show internal directories.
Click to hide internal directories.