MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / RemoveModel

Function RemoveModel

ai-provider/local/executor.go:295–307  ·  view source on GitHub ↗
(model string)

Source from the content-addressed store, hash-verified

293}
294
295func RemoveModel(model string) error {
296 if client == nil {
297 return fmt.Errorf("client not initialized")
298 }
299 taskExecutor.CloseModelPipeline(model)
300 err := client.Delete(context.Background(), &api.DeleteRequest{Model: model})
301 if err != nil {
302 if err.Error() == fmt.Sprintf("model '%s' not found", model) {
303 return nil
304 }
305 }
306 return err
307}
308
309func ModelsInstalled() ([]Model, error) {
310 if client == nil {

Callers

nothing calls this directly

Calls 2

CloseModelPipelineMethod · 0.80
DeleteMethod · 0.65

Tested by

no test coverage detected