openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

Problem with stream attribute for CompletionRequest.

Open ruofeilyu opened this issue 2 years ago • 1 comments

CompletionRequest completionRequest = CompletionRequest.builder() .prompt(dto.getQuestion()) .model(OPENAI_COMPLETION_MODEL) .maxTokens(2048) .n(1) .stream(true) .echo(false) .build();

have error Resolved [java.lang.RuntimeException: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'data': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')<EOL>

ruofeilyu avatar Dec 23 '22 06:12 ruofeilyu

See comment on issue #52.

cryptoapebot avatar Dec 23 '22 20:12 cryptoapebot