MCPcopy Create free account
hub / github.com/InftyAI/llmaz / ModelSourceWithModelHub

Method ModelSourceWithModelHub

test/util/wrapper/model.go:76–84  ·  view source on GitHub ↗
(modelHub string)

Source from the content-addressed store, hash-verified

74}
75
76func (w *ModelWrapper) ModelSourceWithModelHub(modelHub string) *ModelWrapper {
77 if modelHub != "" {
78 if w.Spec.Source.ModelHub == nil {
79 w.Spec.Source.ModelHub = &coreapi.ModelHub{}
80 }
81 w.Spec.Source.ModelHub.Name = &modelHub
82 }
83 return w
84}
85
86func (w *ModelWrapper) ModelSourceWithURI(uri string) *ModelWrapper {
87 value := coreapi.URIProtocol(uri)

Callers 5

TestModelSourceProviderFunction · 0.80
playground_test.goFile · 0.80
model_test.goFile · 0.80
playground_test.goFile · 0.80
MockASampleModelFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestModelSourceProviderFunction · 0.64