MCPcopy
hub / github.com/mudler/LocalAI / NewLocalModelManager

Function NewLocalModelManager

core/services/galleryop/managers_local.go:23–31  ·  view source on GitHub ↗

NewLocalModelManager creates a LocalModelManager from the application config.

(appConfig *config.ApplicationConfig, ml *model.ModelLoader)

Source from the content-addressed store, hash-verified

21
22// NewLocalModelManager creates a LocalModelManager from the application config.
23func NewLocalModelManager(appConfig *config.ApplicationConfig, ml *model.ModelLoader) *LocalModelManager {
24 return &LocalModelManager{
25 systemState: appConfig.SystemState,
26 modelLoader: ml,
27 enforcePredownloadScans: appConfig.EnforcePredownloadScans,
28 automaticallyInstallBackend: appConfig.AutoloadBackendGalleries,
29 requireBackendIntegrity: appConfig.RequireBackendIntegrity,
30 }
31}
32
33// SetAutoInstallBackend controls whether backend binaries are automatically
34// installed when a model is installed. In distributed mode the frontend node

Callers 3

managers_test.goFile · 0.92
NewGalleryServiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected