Documentation
¶
Overview ¶
Package config provides the public SDK configuration API.
It re-exports the server configuration types and helpers so external projects can embed CLIProxyAPI 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 OpenAICompatibility
- type OpenAICompatibilityAPIKey
- type OpenAICompatibilityModel
- type PayloadConfig
- type PayloadModelRule
- type PayloadRule
- type RemoteManagement
- type SDKConfig
- type TLS
- type TLSConfig
- type VertexCompatKey
- type VertexCompatModel
Constants ¶
View Source
const ( AccessProviderTypeConfigAPIKey = internalconfig.AccessProviderTypeConfigAPIKey DefaultAccessProviderName = internalconfig.DefaultAccessProviderName DefaultPanelGitHubRepository = internalconfig.DefaultPanelGitHubRepository )
Variables ¶
This section is empty.
Functions ¶
func NormalizeCommentIndentation ¶ added in v6.6.34
func SaveConfigPreserveComments ¶ added in v6.6.34
Types ¶
type AccessConfig ¶
type AccessConfig = internalconfig.AccessConfig
type AccessProvider ¶
type AccessProvider = internalconfig.AccessProvider
func MakeInlineAPIKeyProvider ¶ added in v6.0.17
func MakeInlineAPIKeyProvider(keys []string) *AccessProvider
type AmpCode ¶ added in v6.6.34
type AmpCode = internalconfig.AmpCode
type ClaudeKey ¶ added in v6.6.34
type ClaudeKey = internalconfig.ClaudeKey
type CodexKey ¶ added in v6.6.34
type CodexKey = internalconfig.CodexKey
type Config ¶ added in v6.6.34
type Config = internalconfig.Config
func LoadConfig ¶ added in v6.6.34
type GeminiKey ¶ added in v6.6.34
type GeminiKey = internalconfig.GeminiKey
type OpenAICompatibility ¶ added in v6.6.34
type OpenAICompatibility = internalconfig.OpenAICompatibility
type OpenAICompatibilityAPIKey ¶ added in v6.6.34
type OpenAICompatibilityAPIKey = internalconfig.OpenAICompatibilityAPIKey
type OpenAICompatibilityModel ¶ added in v6.6.34
type OpenAICompatibilityModel = internalconfig.OpenAICompatibilityModel
type PayloadConfig ¶ added in v6.6.34
type PayloadConfig = internalconfig.PayloadConfig
type PayloadModelRule ¶ added in v6.6.34
type PayloadModelRule = internalconfig.PayloadModelRule
type PayloadRule ¶ added in v6.6.34
type PayloadRule = internalconfig.PayloadRule
type RemoteManagement ¶ added in v6.6.34
type RemoteManagement = internalconfig.RemoteManagement
type SDKConfig ¶
type SDKConfig = internalconfig.SDKConfig
type TLS ¶ added in v6.6.34
type TLS = internalconfig.TLSConfig
type TLSConfig ¶ added in v6.6.34
type TLSConfig = internalconfig.TLSConfig
type VertexCompatKey ¶ added in v6.6.34
type VertexCompatKey = internalconfig.VertexCompatKey
type VertexCompatModel ¶ added in v6.6.34
type VertexCompatModel = internalconfig.VertexCompatModel
Click to show internal directories.
Click to hide internal directories.