Versions in this module Expand all Collapse all v6 v6.9.3 Mar 25, 2026 Changes in this version + const DefaultPanelGitHubRepository + const DefaultPprofAddr + func NormalizeCommentIndentation(data []byte) []byte + func NormalizeExcludedModels(models []string) []string + func NormalizeHeaders(headers map[string]string) map[string]string + func NormalizeOAuthExcludedModels(entries map[string][]string) map[string][]string + func SaveConfigPreserveComments(configFile string, cfg *Config) error + func SaveConfigPreserveCommentsUpdateNestedScalar(configFile string, path []string, value string) error + type AmpCode struct + ForceModelMappings bool + ModelMappings []AmpModelMapping + RestrictManagementToLocalhost bool + UpstreamAPIKey string + UpstreamAPIKeys []AmpUpstreamAPIKeyEntry + UpstreamURL string + type AmpModelMapping struct + From string + Regex bool + To string + type AmpUpstreamAPIKeyEntry struct + APIKeys []string + UpstreamAPIKey string + type ClaudeHeaderDefaults struct + Arch string + OS string + PackageVersion string + RuntimeVersion string + StabilizeDeviceProfile *bool + Timeout string + UserAgent string + type ClaudeKey struct + APIKey string + BaseURL string + Cloak *CloakConfig + ExcludedModels []string + Headers map[string]string + Models []ClaudeModel + Prefix string + Priority int + ProxyURL string + func (k ClaudeKey) GetAPIKey() string + func (k ClaudeKey) GetBaseURL() string + type ClaudeModel struct + Alias string + Name string + func (m ClaudeModel) GetAlias() string + func (m ClaudeModel) GetName() string + type CloakConfig struct + CacheUserID *bool + Mode string + SensitiveWords []string + StrictMode bool + type CodexHeaderDefaults struct + BetaFeatures string + UserAgent string + type CodexKey struct + APIKey string + BaseURL string + ExcludedModels []string + Headers map[string]string + Models []CodexModel + Prefix string + Priority int + ProxyURL string + Websockets bool + func (k CodexKey) GetAPIKey() string + func (k CodexKey) GetBaseURL() string + type CodexModel struct + Alias string + Name string + func (m CodexModel) GetAlias() string + func (m CodexModel) GetName() string + type Config struct + AmpCode AmpCode + AuthDir string + ClaudeHeaderDefaults ClaudeHeaderDefaults + ClaudeKey []ClaudeKey + CodexHeaderDefaults CodexHeaderDefaults + CodexKey []CodexKey + CommercialMode bool + Debug bool + DisableCooling bool + ErrorLogsMaxFiles int + GeminiKey []GeminiKey + Host string + LoggingToFile bool + LogsMaxTotalSizeMB int + MaxRetryCredentials int + MaxRetryInterval int + OAuthExcludedModels map[string][]string + OAuthModelAlias map[string][]OAuthModelAlias + OpenAICompatibility []OpenAICompatibility + Payload PayloadConfig + Port int + Pprof PprofConfig + QuotaExceeded QuotaExceeded + RemoteManagement RemoteManagement + RequestRetry int + Routing RoutingConfig + TLS TLSConfig + UsageStatisticsEnabled bool + VertexCompatAPIKey []VertexCompatKey + WebsocketAuth bool + func LoadConfig(configFile string) (*Config, error) + func LoadConfigOptional(configFile string, optional bool) (*Config, error) + func (cfg *Config) SanitizeClaudeHeaderDefaults() + func (cfg *Config) SanitizeClaudeKeys() + func (cfg *Config) SanitizeCodexHeaderDefaults() + func (cfg *Config) SanitizeCodexKeys() + func (cfg *Config) SanitizeGeminiKeys() + func (cfg *Config) SanitizeOAuthModelAlias() + func (cfg *Config) SanitizeOpenAICompatibility() + func (cfg *Config) SanitizePayloadRules() + func (cfg *Config) SanitizeVertexCompatKeys() + type GeminiKey struct + APIKey string + BaseURL string + ExcludedModels []string + Headers map[string]string + Models []GeminiModel + Prefix string + Priority int + ProxyURL string + func (k GeminiKey) GetAPIKey() string + func (k GeminiKey) GetBaseURL() string + type GeminiModel struct + Alias string + Name string + func (m GeminiModel) GetAlias() string + func (m GeminiModel) GetName() string + type OAuthModelAlias struct + Alias string + Fork bool + Name string + type OpenAICompatibility struct + APIKeyEntries []OpenAICompatibilityAPIKey + BaseURL string + Headers map[string]string + Models []OpenAICompatibilityModel + Name string + Prefix string + Priority int + type OpenAICompatibilityAPIKey struct + APIKey string + ProxyURL string + type OpenAICompatibilityModel struct + Alias string + Name string + Thinking *registry.ThinkingSupport + func (m OpenAICompatibilityModel) GetAlias() string + func (m OpenAICompatibilityModel) GetName() string + type PayloadConfig struct + Default []PayloadRule + DefaultRaw []PayloadRule + Filter []PayloadFilterRule + Override []PayloadRule + OverrideRaw []PayloadRule + type PayloadFilterRule struct + Models []PayloadModelRule + Params []string + type PayloadModelRule struct + Name string + Protocol string + type PayloadRule struct + Models []PayloadModelRule + Params map[string]any + type PprofConfig struct + Addr string + Enable bool + type QuotaExceeded struct + SwitchPreviewModel bool + SwitchProject bool + type RemoteManagement struct + AllowRemote bool + DisableControlPanel bool + PanelGitHubRepository string + SecretKey string + type RoutingConfig struct + Strategy string + type SDKConfig struct + APIKeys []string + ForceModelPrefix bool + NonStreamKeepAliveInterval int + PassthroughHeaders bool + ProxyURL string + RequestLog bool + Streaming StreamingConfig + type StreamingConfig struct + BootstrapRetries int + KeepAliveSeconds int + type TLSConfig struct + Cert string + Enable bool + Key string + type VertexCompatKey struct + APIKey string + BaseURL string + ExcludedModels []string + Headers map[string]string + Models []VertexCompatModel + Prefix string + Priority int + ProxyURL string + func (k VertexCompatKey) GetAPIKey() string + func (k VertexCompatKey) GetBaseURL() string + type VertexCompatModel struct + Alias string + Name string + func (m VertexCompatModel) GetAlias() string + func (m VertexCompatModel) GetName() string v6.9.2-rc1 Mar 25, 2026