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

Function WithModelPath

pkg/system/state.go:49–53  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

47}
48
49func WithModelPath(path string) SystemStateOptions {
50 return func(s *SystemState) {
51 s.Model.ModelsPath = path
52 }
53}
54
55func WithBackendImagesReleaseTag(tag string) SystemStateOptions {
56 return func(s *SystemState) {

Callers 15

app_test.goFile · 0.92
vram_test.goFile · 0.92
edit_model_test.goFile · 0.92
settings_test.goFile · 0.92
pii_test.goFile · 0.92

Calls

no outgoing calls

Tested by 1

minimalSystemStateFunction · 0.74