MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / UpdateProvider

Method UpdateProvider

service/ai-local/iml.go:23–26  ·  view source on GitHub ↗
(ctx context.Context, provider string, ids ...string)

Source from the content-addressed store, hash-verified

21}
22
23func (i *imlLocalModelService) UpdateProvider(ctx context.Context, provider string, ids ...string) error {
24 _, err := i.store.UpdateField(ctx, "provider", provider, "uuid in (?)", ids)
25 return err
26}
27
28func (i *imlLocalModelService) DefaultModel(ctx context.Context) (*LocalModel, error) {
29 info, err := i.store.First(ctx, map[string]interface{}{"state": 1})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected