|
|
package config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type RuntimeSettings struct { |
|
|
|
|
|
WatchdogEnabled *bool `json:"watchdog_enabled,omitempty"` |
|
|
WatchdogIdleEnabled *bool `json:"watchdog_idle_enabled,omitempty"` |
|
|
WatchdogBusyEnabled *bool `json:"watchdog_busy_enabled,omitempty"` |
|
|
WatchdogIdleTimeout *string `json:"watchdog_idle_timeout,omitempty"` |
|
|
WatchdogBusyTimeout *string `json:"watchdog_busy_timeout,omitempty"` |
|
|
WatchdogInterval *string `json:"watchdog_interval,omitempty"` |
|
|
|
|
|
|
|
|
SingleBackend *bool `json:"single_backend,omitempty"` |
|
|
MaxActiveBackends *int `json:"max_active_backends,omitempty"` |
|
|
ParallelBackendRequests *bool `json:"parallel_backend_requests,omitempty"` |
|
|
|
|
|
|
|
|
MemoryReclaimerEnabled *bool `json:"memory_reclaimer_enabled,omitempty"` |
|
|
MemoryReclaimerThreshold *float64 `json:"memory_reclaimer_threshold,omitempty"` |
|
|
|
|
|
|
|
|
ForceEvictionWhenBusy *bool `json:"force_eviction_when_busy,omitempty"` |
|
|
LRUEvictionMaxRetries *int `json:"lru_eviction_max_retries,omitempty"` |
|
|
LRUEvictionRetryInterval *string `json:"lru_eviction_retry_interval,omitempty"` |
|
|
|
|
|
|
|
|
Threads *int `json:"threads,omitempty"` |
|
|
ContextSize *int `json:"context_size,omitempty"` |
|
|
F16 *bool `json:"f16,omitempty"` |
|
|
Debug *bool `json:"debug,omitempty"` |
|
|
EnableTracing *bool `json:"enable_tracing,omitempty"` |
|
|
TracingMaxItems *int `json:"tracing_max_items,omitempty"` |
|
|
|
|
|
|
|
|
CORS *bool `json:"cors,omitempty"` |
|
|
CSRF *bool `json:"csrf,omitempty"` |
|
|
CORSAllowOrigins *string `json:"cors_allow_origins,omitempty"` |
|
|
|
|
|
|
|
|
P2PToken *string `json:"p2p_token,omitempty"` |
|
|
P2PNetworkID *string `json:"p2p_network_id,omitempty"` |
|
|
Federated *bool `json:"federated,omitempty"` |
|
|
|
|
|
|
|
|
Galleries *[]Gallery `json:"galleries,omitempty"` |
|
|
BackendGalleries *[]Gallery `json:"backend_galleries,omitempty"` |
|
|
AutoloadGalleries *bool `json:"autoload_galleries,omitempty"` |
|
|
AutoloadBackendGalleries *bool `json:"autoload_backend_galleries,omitempty"` |
|
|
|
|
|
|
|
|
ApiKeys *[]string `json:"api_keys"` |
|
|
|
|
|
|
|
|
AgentJobRetentionDays *int `json:"agent_job_retention_days,omitempty"` |
|
|
} |
|
|
|