package config // BillingConfig 计费配置 type BillingConfig struct { CircuitBreaker CircuitBreakerConfig `mapstructure:"circuit_breaker"` } type CircuitBreakerConfig struct { Enabled bool `mapstructure:"enabled"` FailureThreshold int `mapstructure:"failure_threshold"` ResetTimeoutSeconds int `mapstructure:"reset_timeout_seconds"` HalfOpenRequests int `mapstructure:"half_open_requests"` } // PricingConfig 定价数据配置 type PricingConfig struct { RemoteURL string `mapstructure:"remote_url"` // 远程 URL(默认 LiteLLM 镜像) HashURL string `mapstructure:"hash_url"` // 哈希校验文件 URL DataDir string `mapstructure:"data_dir"` // 本地数据目录 FallbackFile string `mapstructure:"fallback_file"` // 回退文件路径 UpdateIntervalHours int `mapstructure:"update_interval_hours"` // 更新间隔(小时) HashCheckIntervalMinutes int `mapstructure:"hash_check_interval_minutes"` // 哈希校验间隔(分钟) }