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

Function WithModel

pkg/model/loader_options.go:70–74  ·  view source on GitHub ↗
(modelFile string)

Source from the content-addressed store, hash-verified

68}
69
70func WithModel(modelFile string) Option {
71 return func(o *Options) {
72 o.model = modelFile
73 }
74}
75
76func WithLoadGRPCLoadModelOpts(opts *pb.ModelOptions) Option {
77 return func(o *Options) {

Callers 12

RealtimeCallsFunction · 0.92
ModelOptionsFunction · 0.92
TokenMetricsFunction · 0.92
StoreBackendFunction · 0.92
StartJobMethod · 0.92
StreamProgressMethod · 0.92
StartJobMethod · 0.92
StreamProgressMethod · 0.92
ListCheckpointsMethod · 0.92
ExportModelMethod · 0.92
stores_test.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected