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

Method DefaultModel

service/ai-local/iml.go:28–34  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

26}
27
28func (i *imlLocalModelService) DefaultModel(ctx context.Context) (*LocalModel, error) {
29 info, err := i.store.First(ctx, map[string]interface{}{"state": 1})
30 if err != nil {
31 return nil, err
32 }
33 return i.fromEntity(info), nil
34}
35
36func (i *imlLocalModelService) OnComplete() {
37 i.IServiceGet = universally.NewGet[LocalModel, ai.LocalModel](i.store, i.fromEntity)

Callers

nothing calls this directly

Calls 1

fromEntityMethod · 0.95

Tested by

no test coverage detected