config

package
v6.9.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 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 (
	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 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 OAuthModelAlias

type OAuthModelAlias = internalconfig.OAuthModelAlias

type OpenAICompatibility

type OpenAICompatibility = internalconfig.OpenAICompatibility

type PayloadConfig

type PayloadConfig = internalconfig.PayloadConfig

type PayloadFilterRule

type PayloadFilterRule = internalconfig.PayloadFilterRule

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 TLS

type TLSConfig

type TLSConfig = internalconfig.TLSConfig

type VertexCompatKey

type VertexCompatKey = internalconfig.VertexCompatKey

type VertexCompatModel

type VertexCompatModel = internalconfig.VertexCompatModel

Jump to

Keyboard shortcuts

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