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

Function WithContext

pkg/model/loader_options.go:82–86  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

80}
81
82func WithContext(ctx context.Context) Option {
83 return func(o *Options) {
84 o.context = ctx
85 }
86}
87
88func WithModelID(id string) Option {
89 return func(o *Options) {

Callers 9

VADFunction · 0.92
ImageGenerationFunction · 0.92
ModelOptionsFunction · 0.92
RerankFunction · 0.92
ModelTTSFunction · 0.92
ModelTTSStreamFunction · 0.92
ModelInferenceFunction · 0.92
loadTranscriptionModelFunction · 0.92
ModelEmbeddingFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected