(ctx context.Context)
| 26 | } |
| 27 | |
| 28 | func (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 | |
| 36 | func (i *imlLocalModelService) OnComplete() { |
| 37 | i.IServiceGet = universally.NewGet[LocalModel, ai.LocalModel](i.store, i.fromEntity) |
nothing calls this directly
no test coverage detected