Merge pull request 'update openi' (#43) from tzwang/pcm-participant:master into master

This commit is contained in:
tzwang 2025-07-31 18:02:12 +08:00
commit ad506525ba
2 changed files with 7 additions and 8 deletions

View File

@ -41,12 +41,12 @@ func main() {
// zap.L().Fatal("集群初始化失败", zap.Error(err))
//}
// 初始化智算集群连接
//aiSvc, err := initialize.InitAICluster(cfg)
//if err != nil {
// initialize.Panic("Server started failed: %s", err)
// return
//}
//api.AiApi.RegisterSvc(aiSvc)
aiSvc, err := initialize.InitAICluster(cfg)
if err != nil {
initialize.Panic("Server started failed: %s", err)
return
}
api.AiApi.RegisterSvc(aiSvc)
// 初始化通算集群连接
cloudSvc, err := initialize.InitCloudCluster(cfg)
if err != nil {

View File

@ -1549,9 +1549,8 @@ func (d *Dataset) Create(ctx context.Context, param *dataset.CreateParam) (*data
}
if openi.RepoName == "" {
return nil, errors.New("Repo is required")
return nil, errors.New("RepoName is required")
}
// jcs source
if param.Src.Jcs == nil {
return nil, errors.New("jcs source is required")