Skip to content

Commit

Permalink
Addressing PR comments,making description field optional for Register…
Browse files Browse the repository at this point in the history
…RemoteModelStep and RegisterLocalModelStep

Signed-off-by: Joshua Palis <[email protected]>
  • Loading branch information
joshpalis committed Nov 8, 2023
1 parent 366f05e commit 5f0a357
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,8 @@ public void onFailure(Exception e) {
}
}

if (Stream.of(
modelName,
modelVersion,
description,
modelFormat,
modelGroupId,
embeddingDimension,
frameworkType,
modelContentHashValue,
url
).allMatch(x -> x != null)) {
if (Stream.of(modelName, modelVersion, modelFormat, modelGroupId, embeddingDimension, frameworkType, modelContentHashValue, url)
.allMatch(x -> x != null)) {

// Create model configuration, assuming null pooling mode, null model max length, normalize results set to false
TextEmbeddingModelConfigBuilder builder = TextEmbeddingModelConfig.builder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void onFailure(Exception e) {
}
}

if (Stream.of(modelName, functionName, description, connectorId).allMatch(x -> x != null)) {
if (Stream.of(modelName, functionName, connectorId).allMatch(x -> x != null)) {

MLRegisterModelInputBuilder builder = MLRegisterModelInput.builder();

Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/mappings/workflow-steps.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"inputs":[
"name",
"version",
"description",
"model_format",
"model_group_id",
"model_content_hash_value",
Expand All @@ -61,7 +60,6 @@
"inputs": [
"name",
"function_name",
"description",
"connector_id"
],
"outputs": [
Expand Down

0 comments on commit 5f0a357

Please sign in to comment.