You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// are able to be requested by using their distinct name.
43
43
modelObj:=s.datastore.FetchModelData(model)
44
44
ifmodelObj==nil {
45
-
returnnil, fmt.Errorf("error finding a model object in InferenceModel for input %v", model)
45
+
returnnil, infextprocerror.Error{Code: infextprocerror.Internal, Msg: fmt.Sprintf("error finding a model object in InferenceModel for input %v", modelObj.Name)}
46
46
}
47
47
iflen(modelObj.Spec.TargetModels) >0 {
48
48
modelName=backend.RandomWeightedDraw(modelObj, 0)
49
49
ifmodelName=="" {
50
-
returnnil, fmt.Errorf("error getting target model name for model %v", modelObj.Name)
50
+
returnnil, infextprocerror.Error{Code: infextprocerror.Internal, Msg: fmt.Sprintf("error getting target model name for model %v", modelObj.Name)}
0 commit comments