config

package
v0.5.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

View Source
const (
	AccessProviderTypeConfigAPIKey = internalconfig.AccessProviderTypeConfigAPIKey
	DefaultAccessProviderName      = internalconfig.DefaultAccessProviderName
	DefaultPanelGitHubRepository   = internalconfig.DefaultPanelGitHubRepository
)

Variables

This section is empty.

Functions

func NormalizeCommentIndentation

func NormalizeCommentIndentation(data []byte) []byte

func SaveConfigPreserveComments

func SaveConfigPreserveComments(configFile string, cfg *Config) error

func SaveConfigPreserveCommentsUpdateNestedScalar

func SaveConfigPreserveCommentsUpdateNestedScalar(configFile string, path []string, value string) error

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 Config

type Config = internalconfig.Config

func LoadConfig

func LoadConfig(configFile string) (*Config, error)

func LoadConfigOptional

func LoadConfigOptional(configFile string, optional bool) (*Config, error)

type GeminiKey

type GeminiKey = internalconfig.GeminiKey

type IntelligenceConfig

type IntelligenceConfig = internalconfig.IntelligenceConfig

type OpenAICompatibility

type OpenAICompatibility = internalconfig.OpenAICompatibility

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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL