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

Method CheckIsLoaded

pkg/model/loader.go:414–418  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

412}
413
414func (ml *ModelLoader) CheckIsLoaded(s string) *Model {
415 ml.mu.Lock()
416 defer ml.mu.Unlock()
417 return ml.checkIsLoaded(s)
418}
419
420func (ml *ModelLoader) checkIsLoaded(s string) *Model {
421 m, ok := ml.store.Get(s)

Callers 3

LoadMethod · 0.95
CheckAndSampleMethod · 0.80
loader_test.goFile · 0.80

Calls 3

checkIsLoadedMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected