(ctx context.Context, model string)
| 241 | } |
| 242 | |
| 243 | func (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 | |
| 251 | func (i *imlLocalModelCacheService) Save(ctx context.Context, model string, typ CacheType, target string) error { |
| 252 | return i.store.Insert(ctx, &ai.LocalModelCache{ |
nothing calls this directly
no outgoing calls
no test coverage detected