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

Function WithContext

core/config/application_config.go:607–611  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

605}
606
607func WithContext(ctx context.Context) AppOption {
608 return func(o *ApplicationConfig) {
609 o.Context = ctx
610 }
611}
612
613func WithYAMLConfigPreload(configFile string) AppOption {
614 return func(o *ApplicationConfig) {

Callers 12

app_test.goFile · 0.92
settings_test.goFile · 0.92
pii_test.goFile · 0.92
RunMethod · 0.92
newTaskSyncServiceFunction · 0.92
agent_jobs_test.goFile · 0.92
mainFunction · 0.92
e2e_suite_test.goFile · 0.92

Calls

no outgoing calls

Tested by 1

newTaskSyncServiceFunction · 0.74