MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / SyncLocalModels

Method SyncLocalModels

module/ai-local/iml.go:59–66  ·  view source on GitHub ↗
(ctx context.Context, address string)

Source from the content-addressed store, hash-verified

57}
58
59func (i *imlLocalModel) SyncLocalModels(ctx context.Context, address string) error {
60 releases, err := i.getLocalModels(ctx, address)
61 if err != nil {
62 return err
63 }
64
65 return i.syncGateway(ctx, cluster.DefaultClusterID, releases, true)
66}
67
68func (i *imlLocalModel) SimpleList(ctx context.Context) ([]*ai_local_dto.SimpleItem, error) {
69 list, err := i.localModelService.List(ctx)

Callers

nothing calls this directly

Calls 2

getLocalModelsMethod · 0.95
syncGatewayMethod · 0.95

Tested by

no test coverage detected