Skip to content

Commit

Permalink
add comment
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 792814b commit fee5055
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ private static RemoteInferenceInputDataSet processTextDocsInput(TextDocsInputDat
for (String doc : inputDataSet.getDocs()) {
if (doc != null) {
String gsonString = gson.toJson(doc);
// in 2.9, user will add " before and after string
// gson.toString(string) will add extra " before after string, so need to remove
docs.add(gsonString.substring(1, gsonString.length() - 1));
} else {
docs.add(null);
Expand Down

0 comments on commit fee5055

Please sign in to comment.