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

Function NewInMemoryModelStore

pkg/model/store.go:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func NewInMemoryModelStore() *InMemoryModelStore {
21 return &InMemoryModelStore{models: make(map[string]*Model)}
22}
23
24func (s *InMemoryModelStore) Get(id string) (*Model, bool) {
25 s.mu.RLock()

Callers 5

NewFunction · 0.92
store_test.goFile · 0.92
NewModelLoaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected