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

Method Update

controller/ai-local/iml.go:370–377  ·  view source on GitHub ↗
(ctx *gin.Context, model string, input *ai_local_dto.Update)

Source from the content-addressed store, hash-verified

368}
369
370func (i *imlLocalModelController) Update(ctx *gin.Context, model string, input *ai_local_dto.Update) error {
371 switch input.Disable {
372 case true:
373 return i.module.Disable(ctx, model)
374 default:
375 return i.module.Enable(ctx, model)
376 }
377}

Callers

nothing calls this directly

Calls 2

DisableMethod · 0.65
EnableMethod · 0.65

Tested by

no test coverage detected