config

package
v8.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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 ClaudeCodeConfig

type ClaudeCodeConfig = internalconfig.ClaudeCodeConfig

type ClaudeKey

type ClaudeKey = internalconfig.ClaudeKey

type ClientConfig added in v8.0.9

type ClientConfig = internalconfig.ClientConfig

type CodexClientConfig added in v8.0.9

type CodexClientConfig = internalconfig.CodexClientConfig

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)

func ParseConfigBytes

func ParseConfigBytes(data []byte) (*Config, error)

type DiscoveryConfig

type DiscoveryConfig = internalconfig.DiscoveryConfig

type GeminiKey

type GeminiKey = internalconfig.GeminiKey

type MetaKey

type MetaKey = internalconfig.MetaKey

type MetaModel

type MetaModel = internalconfig.MetaModel

type ModelCatalogs added in v8.0.14

type ModelCatalogs = internalconfig.ModelCatalogs

type OAuthModelAlias

type OAuthModelAlias = internalconfig.OAuthModelAlias

type OAuthModelSetting added in v8.0.5

type OAuthModelSetting = internalconfig.OAuthModelSetting

func ResolveOAuthModelSetting added in v8.0.5

func ResolveOAuthModelSetting(settings []OAuthModelSetting, modelID, metadataModelID, modelName string) *OAuthModelSetting

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

type XAIKey

type XAIKey = internalconfig.XAIKey

type XAIModel

type XAIModel = internalconfig.XAIModel

Jump to

Keyboard shortcuts

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