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

Method modelsPath

core/services/modeladmin/config.go:55–57  ·  view source on GitHub ↗

modelsPath is shorthand for the configured models directory.

()

Source from the content-addressed store, hash-verified

53
54// modelsPath is shorthand for the configured models directory.
55func (s *ConfigService) modelsPath() string {
56 return s.AppConfig.SystemState.Model.ModelsPath
57}
58
59// GetConfig reads the YAML for an installed model from disk and returns it
60// alongside the parsed JSON view.

Callers 5

TogglePinnedMethod · 0.95
ToggleStateMethod · 0.95
GetConfigMethod · 0.95
PatchConfigMethod · 0.95
EditYAMLMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected