Documentation
¶
Overview ¶
Package config parses and publishes immutable deepseek-vision configuration snapshots. The host owns enabled/priority, model routing, credentials, provider transport, and retry policy.
Index ¶
Constants ¶
View Source
const ( DefaultVisionModel = "gpt-5.6-luna" DefaultLanguage = "zh" DefaultRequestTimeoutSec = 120 DefaultEmergencyMaxImages = 256 DefaultMaxInflightVisionRequests = 4 DefaultMaxRequestBytes = 20 * 1024 * 1024 DefaultMaxImageRefBytes = 15 * 1024 * 1024 DefaultMaxResponseBytes = 4 * 1024 * 1024 DefaultMaxResultChars = 20_000 DefaultAnalysisCacheSize = 128 DefaultAnalysisCacheTTL = 15 * 60 DefaultURLCacheTTL = 2 * 60 // MaxRequestBytesLimit is the largest raw Responses body accepted by // configuration. The native ABI separately accounts for envelope overhead. MaxRequestBytesLimit = 32 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func ConfigureYAML ¶
func PublishValidated ¶
Types ¶
type Config ¶
type Config struct {
TargetModels []string
VisionModel string
VisionFallbackModels []string
Language string
RequestTimeout time.Duration
EmergencyMaxImagesPerRequest int
MaxInflightVisionRequests int
MaxRequestBytes int
MaxImageReferenceBytes int
MaxResponseBytes int
MaxResultChars int
AnalysisCacheSize int
AnalysisCacheTTL time.Duration
URLAnalysisCacheTTL time.Duration
AgentReanalysisEnabled bool
TraceEnabled bool
}
Config is an immutable, validated runtime snapshot. Callers must treat TargetModels as read-only.
func ParseYAML ¶
ParseYAML accepts either the direct plugin mapping or the full plugins.configs.deepseek-vision host wrapper.
func (*Config) VisionModels ¶ added in v0.3.0
VisionModels returns the ordered primary-plus-fallback model chain.
Click to show internal directories.
Click to hide internal directories.