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

Struct InMemoryModelStore

pkg/model/store.go:15–18  ·  view source on GitHub ↗

InMemoryModelStore is the default ModelStore backed by a plain map.

Source from the content-addressed store, hash-verified

13
14// InMemoryModelStore is the default ModelStore backed by a plain map.
15type InMemoryModelStore struct {
16 mu sync.RWMutex
17 models map[string]*Model
18}
19
20func NewInMemoryModelStore() *InMemoryModelStore {
21 return &InMemoryModelStore{models: make(map[string]*Model)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected