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

Method Set

pkg/model/store.go:9–9  ·  view source on GitHub ↗
(id string, m *Model)

Source from the content-addressed store, hash-verified

7type ModelStore interface {
8 Get(id string) (*Model, bool)
9 Set(id string, m *Model)
10 Delete(id string)
11 Range(fn func(id string, m *Model) bool) // return false to stop
12}

Callers 15

applyAuthHeaderFunction · 0.65
doOpenAIRequestMethod · 0.65
fakeOpenAIUpstreamFunction · 0.65
doAnthropicRequestMethod · 0.65
fakeAnthropicUpstreamFunction · 0.65
getModelStatusFunction · 0.65
postModelApplyRequestFunction · 0.65
postRequestJSONFunction · 0.65
postRequestResponseJSONFunction · 0.65
putRequestJSONFunction · 0.65

Implementers 2

DistributedModelStorecore/services/nodes/distributed_store.
InMemoryModelStorepkg/model/store.go

Calls

no outgoing calls

Tested by 15

fakeOpenAIUpstreamFunction · 0.52
fakeAnthropicUpstreamFunction · 0.52
getModelStatusFunction · 0.52
postModelApplyRequestFunction · 0.52
postRequestJSONFunction · 0.52
postRequestResponseJSONFunction · 0.52
putRequestJSONFunction · 0.52
postInvalidRequestFunction · 0.52
postJSONFunction · 0.52
runRouterWithDepsFunction · 0.52
runAdmissionFunction · 0.52