Skip to content

Commit

Permalink
Update common/src/main/java/org/opensearch/ml/common/connector/functi…
Browse files Browse the repository at this point in the history
…ons/preprocess/MultiModalEmbeddingPreProcessFunction.java

Co-authored-by: Martin Gaievski <[email protected]>
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo and martin-gaievski authored Jun 6, 2024
1 parent 22418a9 commit bd1722d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void validate(MLInput mlInput) {

// The input will must have inputText even it's null, input image is optional.
@Override
public RemoteInferenceInputDataSet process(MLInput mlInput) {
public RemoteInferenceInputDataSet process(final MLInput mlInput) {
TextDocsInputDataSet inputData = (TextDocsInputDataSet) mlInput.getInputDataset();
if (inputData.getDocs().size() == 1) {
return RemoteInferenceInputDataSet.builder().parameters(convertScriptStringToJsonString(Map.of("parameters", Map.of("inputText", inputData.getDocs().get(0))))).build();
Expand Down

0 comments on commit bd1722d

Please sign in to comment.