Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountConfig ¶
type ComboConfig ¶
type ComboConfig struct {
Name string `yaml:"name"`
Strategy string `yaml:"strategy"` // "failover", "round_robin"
Targets []ComboTarget `yaml:"targets"`
}
type ComboTarget ¶
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Providers []ProviderConfig `yaml:"providers"`
Combos []ComboConfig `yaml:"combos"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type ProviderConfig ¶
type ProviderConfig struct {
ID string `yaml:"id"`
Type string `yaml:"type"` // "openai", "antigravity"
BaseURL string `yaml:"base_url,omitempty"`
APIKey string `yaml:"api_key,omitempty"`
Accounts []AccountConfig `yaml:"accounts,omitempty"`
}
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.