MCPcopy Index your code
hub / github.com/mudler/LocalAI / GetModelConfig

Method GetModelConfig

core/config/model_config_loader.go:204–209  ·  view source on GitHub ↗
(m string)

Source from the content-addressed store, hash-verified

202}
203
204func (bcl *ModelConfigLoader) GetModelConfig(m string) (ModelConfig, bool) {
205 bcl.Lock()
206 defer bcl.Unlock()
207 v, exists := bcl.configs[m]
208 return v, exists
209}
210
211func (bcl *ModelConfigLoader) GetAllModelsConfigs() []ModelConfig {
212 bcl.Lock()

Callers 5

RunMethod · 0.95
RunMethod · 0.95
ResolveAliasMethod · 0.95
ValidateAliasTargetMethod · 0.95

Implementers 6

stubClientcore/http/endpoints/mcp/localai_assist
mockConfigLoadercore/services/jobs/dispatcher_test.go
ModelConfigLoadercore/config/model_config_loader.go
fakeClientpkg/mcp/localaitools/fakes_test.go
Clientpkg/mcp/localaitools/httpapi/client.go
Clientpkg/mcp/localaitools/inproc/client.go

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected