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

Method DeployStart

controller/ai-local/iml.go:227–239  ·  view source on GitHub ↗
(ctx *gin.Context, input *ai_local_dto.DeployInput)

Source from the content-addressed store, hash-verified

225}
226
227func (i *imlLocalModelController) DeployStart(ctx *gin.Context, input *ai_local_dto.DeployInput) error {
228 fn, err := i.initAILocalService(ctx, input.Model, input.Team)
229 if err != nil {
230 return err
231 }
232 id := uuid.NewString()
233 _, err = i.module.Deploy(ctx, input.Model, id, fn)
234 if err != nil {
235 return err
236 }
237 ai_provider_local.CancelPipeline(input.Model, id)
238 return nil
239}
240
241func (i *imlLocalModelController) initAILocalService(ctx context.Context, model string, teamID string) (func() error, error) {
242 catalogueInfo, err := i.catalogueModule.DefaultCatalogue(ctx)

Callers

nothing calls this directly

Calls 2

initAILocalServiceMethod · 0.95
DeployMethod · 0.65

Tested by

no test coverage detected