Skip to content

Commit

Permalink
tests(stt): add back hand written edits
Browse files Browse the repository at this point in the history
  • Loading branch information
apaparazzi0329 committed Feb 23, 2024
1 parent 2442c42 commit edd1fc8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1459,10 +1459,10 @@ public ServiceCall<Void> addCorpus(AddCorpusOptions addCorpusOptions) {
if (addCorpusOptions.allowOverwrite() != null) {
builder.query("allow_overwrite", String.valueOf(addCorpusOptions.allowOverwrite()));
}

// hand edit replacement for corpus file serialization
builder.body(RequestUtils.inputStreamBody(addCorpusOptions.corpusFile(), "text/plain"));

ResponseConverter<Void> responseConverter = ResponseConverterUtils.getVoid();
return createServiceCall(builder.build(), responseConverter);
}
Expand Down

0 comments on commit edd1fc8

Please sign in to comment.