(ctx *gin.Context, input *ai_local_dto.DeployInput)
| 225 | } |
| 226 | |
| 227 | func (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 | |
| 241 | func (i *imlLocalModelController) initAILocalService(ctx context.Context, model string, teamID string) (func() error, error) { |
| 242 | catalogueInfo, err := i.catalogueModule.DefaultCatalogue(ctx) |
nothing calls this directly
no test coverage detected