Skip to content

Commit

Permalink
support bwc for process function
Browse files Browse the repository at this point in the history
Signed-off-by: Yaliang Wu <[email protected]>
  • Loading branch information
ylwu-amzn committed Oct 4, 2023
1 parent d8c1162 commit 792814b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ private static RemoteInferenceInputDataSet processTextDocsInput(TextDocsInputDat
List<String> docs = new ArrayList<>();
for (String doc : inputDataSet.getDocs()) {
if (doc != null) {
docs.add(gson.toJson(doc));
String gsonString = gson.toJson(doc);
docs.add(gsonString.substring(1, gsonString.length() - 1));
} else {
docs.add(null);
}
Expand Down

0 comments on commit 792814b

Please sign in to comment.