Documentation
¶
Overview ¶
Package config provides the public SDK configuration API.
It re-exports the server configuration types and helpers so external projects can embed switchAILocal without importing internal packages.
Index ¶
- Constants
- func NormalizeCommentIndentation(data []byte) []byte
- func SaveConfigPreserveComments(configFile string, cfg *Config) error
- func SaveConfigPreserveCommentsUpdateNestedScalar(configFile string, path []string, value string) error
- type AccessConfig
- type AccessProvider
- type AmpCode
- type ClaudeKey
- type CodexKey
- type Config
- type GeminiKey
- type IntelligenceConfig
- type OpenAICompatibility
- type OpenAICompatibilityAPIKey
- type OpenAICompatibilityModel
- type PayloadConfig
- type PayloadModelRule
- type PayloadRule
- type RemoteManagement
- type SDKConfig
- type StreamingConfig
- type SwitchAIKey
- type TLS
- type TLSConfig
- type VertexCompatKey
- type VertexCompatModel
- type VirtualModelCapabilitiesConfig
- type VirtualModelConfig
- type VirtualModelMemberConfig
Constants ¶
View Source
const ( AccessProviderTypeConfigAPIKey = internalconfig.AccessProviderTypeConfigAPIKey DefaultAccessProviderName = internalconfig.DefaultAccessProviderName DefaultPanelGitHubRepository = internalconfig.DefaultPanelGitHubRepository )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessConfig ¶
type AccessConfig = internalconfig.AccessConfig
type AccessProvider ¶
type AccessProvider = internalconfig.AccessProvider
func MakeInlineAPIKeyProvider ¶
func MakeInlineAPIKeyProvider(keys []string) *AccessProvider
type AmpCode ¶
type AmpCode = internalconfig.AmpCode
type ClaudeKey ¶
type ClaudeKey = internalconfig.ClaudeKey
type CodexKey ¶
type CodexKey = internalconfig.CodexKey
type GeminiKey ¶
type GeminiKey = internalconfig.GeminiKey
type IntelligenceConfig ¶
type IntelligenceConfig = internalconfig.IntelligenceConfig
type OpenAICompatibility ¶
type OpenAICompatibility = internalconfig.OpenAICompatibility
type OpenAICompatibilityAPIKey ¶
type OpenAICompatibilityAPIKey = internalconfig.OpenAICompatibilityAPIKey
type OpenAICompatibilityModel ¶
type OpenAICompatibilityModel = internalconfig.OpenAICompatibilityModel
type PayloadConfig ¶
type PayloadConfig = internalconfig.PayloadConfig
type PayloadModelRule ¶
type PayloadModelRule = internalconfig.PayloadModelRule
type PayloadRule ¶
type PayloadRule = internalconfig.PayloadRule
type RemoteManagement ¶
type RemoteManagement = internalconfig.RemoteManagement
type SDKConfig ¶
type SDKConfig = internalconfig.SDKConfig
type StreamingConfig ¶
type StreamingConfig = internalconfig.StreamingConfig
type SwitchAIKey ¶
type SwitchAIKey = internalconfig.SwitchAIKey
type TLS ¶
type TLS = internalconfig.TLSConfig
type TLSConfig ¶
type TLSConfig = internalconfig.TLSConfig
type VertexCompatKey ¶
type VertexCompatKey = internalconfig.VertexCompatKey
type VertexCompatModel ¶
type VertexCompatModel = internalconfig.VertexCompatModel
type VirtualModelCapabilitiesConfig ¶ added in v0.5.18
type VirtualModelCapabilitiesConfig = internalconfig.VirtualModelCapabilitiesConfig
type VirtualModelConfig ¶ added in v0.5.18
type VirtualModelConfig = internalconfig.VirtualModelConfig
type VirtualModelMemberConfig ¶ added in v0.5.18
type VirtualModelMemberConfig = internalconfig.VirtualModelMemberConfig
Click to show internal directories.
Click to hide internal directories.