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

Method Apply

core/config/model_config_loader.go:74–78  ·  view source on GitHub ↗
(options ...ConfigLoaderOption)

Source from the content-addressed store, hash-verified

72type ConfigLoaderOption func(*LoadOptions)
73
74func (lo *LoadOptions) Apply(options ...ConfigLoaderOption) {
75 for _, l := range options {
76 l(lo)
77 }
78}
79
80// readModelConfigsFromFile reads a config file that may contain either a single
81// ModelConfig or an array of ModelConfigs. It tries to unmarshal as an array first,

Callers 6

SetDefaultsMethod · 0.95
redactRequestMethod · 0.45
RequestMiddlewareFunction · 0.45
applyAllFunction · 0.45
openai_test.goFile · 0.45
anthropic_test.goFile · 0.45

Calls 1

lFunction · 0.50

Tested by 1

applyAllFunction · 0.36