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

Function WithPreferDevelopmentBackends

pkg/system/state.go:73–77  ·  view source on GitHub ↗
(prefer bool)

Source from the content-addressed store, hash-verified

71}
72
73func WithPreferDevelopmentBackends(prefer bool) SystemStateOptions {
74 return func(s *SystemState) {
75 s.PreferDevelopmentBackends = prefer
76 }
77}
78
79func GetSystemState(opts ...SystemStateOptions) (*SystemState, error) {
80 state := &SystemState{}

Callers 1

RunMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected