Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
7
type
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
applyAuthHeader
Function · 0.65
doOpenAIRequest
Method · 0.65
fakeOpenAIUpstream
Function · 0.65
passthrough_edge_test.go
File · 0.65
doAnthropicRequest
Method · 0.65
TestForward_PassthroughEcho
Function · 0.65
fakeAnthropicUpstream
Function · 0.65
getModelStatus
Function · 0.65
postModelApplyRequest
Function · 0.65
postRequestJSON
Function · 0.65
postRequestResponseJSON
Function · 0.65
putRequestJSON
Function · 0.65
Implementers
2
DistributedModelStore
core/services/nodes/distributed_store.
InMemoryModelStore
pkg/model/store.go
Calls
no outgoing calls
Tested by
15
fakeOpenAIUpstream
Function · 0.52
TestForward_PassthroughEcho
Function · 0.52
fakeAnthropicUpstream
Function · 0.52
getModelStatus
Function · 0.52
postModelApplyRequest
Function · 0.52
postRequestJSON
Function · 0.52
postRequestResponseJSON
Function · 0.52
putRequestJSON
Function · 0.52
postInvalidRequest
Function · 0.52
postJSON
Function · 0.52
runRouterWithDeps
Function · 0.52
runAdmission
Function · 0.52