Documentation
¶
Index ¶
Constants ¶
View Source
const CurrentVersion = "2"
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
Types ¶
type Config ¶
type Config struct {
Version string `yaml:"version"`
Accounts map[string]Account `yaml:"accounts"`
Providers map[string]ProviderConfig `yaml:"providers"`
ColorThresholds struct {
Warning int `yaml:"warning"`
Danger int `yaml:"danger"`
} `yaml:"color_thresholds"`
MaxConcurrentRequests int `yaml:"max_concurrent_requests"`
UseMasterPassword *bool `yaml:"use_master_password,omitempty"`
}
func LoadOrCreateConfig ¶
type ProviderConfig ¶ added in v0.3.0
type ProviderConfig struct {
Enabled bool `yaml:"enabled"`
APIKey string `yaml:"api_key,omitempty"` // OpenCode, Volcengine
CredsPath string `yaml:"creds_path,omitempty"` // Claude
AuthPath string `yaml:"auth_path,omitempty"` // Codex
Endpoint string `yaml:"endpoint,omitempty"` // 自定义端点
}
ProviderConfig 配置各个 provider
Click to show internal directories.
Click to hide internal directories.