config

package
v6.6.35 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: MIT 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 CLIProxyAPI 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 added in v6.6.34

func NormalizeCommentIndentation(data []byte) []byte

func SaveConfigPreserveComments added in v6.6.34

func SaveConfigPreserveComments(configFile string, cfg *Config) error

func SaveConfigPreserveCommentsUpdateNestedScalar added in v6.6.34

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

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

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

func LoadConfigOptional added in v6.6.34

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

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

Jump to

Keyboard shortcuts

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