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

Method Delete

service/ai-local/iml.go:243–249  ·  view source on GitHub ↗
(ctx context.Context, model string)

Source from the content-addressed store, hash-verified

241}
242
243func (i *imlLocalModelCacheService) Delete(ctx context.Context, model string) error {
244 _, err := i.store.DeleteWhere(ctx, map[string]interface{}{"model": model})
245 if err != nil {
246 return err
247 }
248 return nil
249}
250
251func (i *imlLocalModelCacheService) Save(ctx context.Context, model string, typ CacheType, target string) error {
252 return i.store.Insert(ctx, &ai.LocalModelCache{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected