Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArkConfig ¶
type ArkConfig struct {
APIKey string `toml:"api_key"`
BaseURL string `toml:"base_url"`
Models []ModelConfig `toml:"models"`
}
ArkConfig holds configuration for Ark vendor
type ArkPlugin ¶
type ArkPlugin struct {
compat_oai.OpenAICompatible
// contains filtered or unexported fields
}
ArkPlugin implements Genkit plugin for Volcengine Ark (Doubao)
func NewArkPlugin ¶
NewArkPlugin creates a new Ark plugin for Genkit
type ModelConfig ¶
type ModelConfig struct {
Name string `toml:"name"` // Model name for registration (e.g., "doubao-lite", "doubao-pro-32k")
Type ModelType `toml:"type"` // ModelTypeLLM or ModelTypeEmbedding
Model string `toml:"model"` // Actual model identifier
BaseURL string `toml:"base_url"` // Override base URL for this model (optional)
Dim int `toml:"dim"` // Embedding dimension (required for embedding models)
}
ModelConfig holds configuration for a single model (shared by all vendors)
func (*ModelConfig) Validate ¶
func (m *ModelConfig) Validate(index int) error
Validate validates a model config
Click to show internal directories.
Click to hide internal directories.