Skip to content

Commit

Permalink
Addresses PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wbreza committed Apr 24, 2024
1 parent ae6d351 commit 4eea70d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cli/azd/pkg/project/service_target_ml_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func (m *machineLearningEndpointTarget) Package(
serviceConfig *ServiceConfig,
frameworkPackageOutput *ServicePackageResult,
) *async.TaskWithProgress[*ServicePackageResult, ServiceProgress] {
// Implement the Package method here.
return async.RunTaskWithProgress(func(task *async.TaskContextWithProgress[*ServicePackageResult, ServiceProgress]) {
task.SetResult(&ServicePackageResult{})
})
Expand All @@ -97,7 +96,6 @@ func (m *machineLearningEndpointTarget) Deploy(
servicePackage *ServicePackageResult,
targetResource *environment.TargetResource,
) *async.TaskWithProgress[*ServiceDeployResult, ServiceProgress] {
// Implement the Deploy method here.
return async.RunTaskWithProgress(func(task *async.TaskContextWithProgress[*ServiceDeployResult, ServiceProgress]) {
endpointConfig, err := ai.ParseConfig[ai.EndpointDeploymentConfig](serviceConfig.Config)
if err != nil {
Expand Down Expand Up @@ -135,7 +133,7 @@ func (m *machineLearningEndpointTarget) Deploy(

// Deploy flow
if endpointConfig.Flow != nil {
task.SetProgress(NewServiceProgress("Deploying prompt flow"))
task.SetProgress(NewServiceProgress("Deploying AI Prompt Flow"))
flow, err := m.aiHelper.CreateFlow(ctx, workspaceScope, serviceConfig, endpointConfig.Flow)
if err != nil {
task.SetError(err)
Expand All @@ -147,7 +145,7 @@ func (m *machineLearningEndpointTarget) Deploy(

// Deploy environment
if endpointConfig.Environment != nil {
task.SetProgress(NewServiceProgress("Configuring environment"))
task.SetProgress(NewServiceProgress("Configuring AI environment"))
envVersion, err := m.aiHelper.CreateEnvironmentVersion(
ctx,
workspaceScope,
Expand All @@ -164,7 +162,7 @@ func (m *machineLearningEndpointTarget) Deploy(

// Deploy model
if endpointConfig.Model != nil {
task.SetProgress(NewServiceProgress("Configuring model"))
task.SetProgress(NewServiceProgress("Configuring AI model"))
modelVersion, err := m.aiHelper.CreateModelVersion(ctx, workspaceScope, serviceConfig, endpointConfig.Model)
if err != nil {
task.SetError(err)
Expand All @@ -176,7 +174,7 @@ func (m *machineLearningEndpointTarget) Deploy(

// Deploy to endpoint
if endpointConfig.Deployment != nil {
task.SetProgress(NewServiceProgress("Deploying to endpoint"))
task.SetProgress(NewServiceProgress("Deploying to AI Online Endpoint"))
endpointName := filepath.Base(targetResource.ResourceName())
onlineDeployment, err := m.aiHelper.DeployToEndpoint(
ctx,
Expand Down

0 comments on commit 4eea70d

Please sign in to comment.