Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level = string
Level represents the "intelligence" level of the model. i.e. basic, regular, advanced for example, OpenAI: gpt-4.1-mini, gpt-4.1, o3
type Model ¶
type Model struct {
Features map[Feature]bool `yaml:"features" json:"features"`
// output
Type OutputType `yaml:"type" json:"type"`
Provider string `yaml:"provider" json:"provider"`
Model string `yaml:"model" json:"model"`
BaseUrl string `yaml:"base_url" json:"baseUrl"`
ApiKey string `yaml:"api_key" json:"apiKey"`
}
type ModelsConfig ¶
type ModelsConfig struct {
Alias string `yaml:"alias" json:"alias"`
// model
Model string `yaml:"model" json:"model"`
// default for Models
Provider string `yaml:"provider" json:"provider"`
BaseUrl string `yaml:"base_url" json:"baseUrl"`
ApiKey string `yaml:"api_key" json:"apiKey"`
Models map[Level]*Model `yaml:"models" json:"models"`
}
type OutputType ¶
type OutputType string
const ( // OutputTypeUnknown OutputType = "" OutputTypeText OutputType = "text" OutputTypeImage OutputType = "image" )
Click to show internal directories.
Click to hide internal directories.