|
|
|
@@ -791,11 +791,14 @@ func (m *ModelArtsLink) CreateInferDeployInstance(ctx context.Context, option *o |
|
|
|
} |
|
|
|
var configItems []*modelarts.ServiceConfig |
|
|
|
configItems = append(configItems, configParam) |
|
|
|
now := time.Now() |
|
|
|
timestampSec := now.Unix() |
|
|
|
str := strconv.FormatInt(timestampSec, 10) |
|
|
|
req := &modelarts.CreateServiceReq{ |
|
|
|
Platform: m.platform, |
|
|
|
Config: configItems, |
|
|
|
InferType: "real-time", |
|
|
|
ServiceName: option.ModelName + "_" + option.ModelType + "_" + Npu, |
|
|
|
ServiceName: option.ModelName + "_" + option.ModelType + "_" + Npu + "_" + str, |
|
|
|
} |
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), 150*time.Second) |
|
|
|
defer cancel() |
|
|
|
|