Skip to content

Commit ab5cc0a

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a044c3f commit ab5cc0a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/action/TransportInferenceActionProxy.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,19 @@ private void sendUnifiedCompletionRequest(InferenceActionProxy.Request request,
8484

8585
try {
8686
if (request.isStreaming() == false) {
87-
unifiedErrorFormatListener.onFailure(new ElasticsearchStatusException(
88-
"The [chat_completion] task type only supports streaming, please try again with the _stream API",
89-
RestStatus.BAD_REQUEST
90-
));
87+
unifiedErrorFormatListener.onFailure(
88+
new ElasticsearchStatusException(
89+
"The [chat_completion] task type only supports streaming, please try again with the _stream API",
90+
RestStatus.BAD_REQUEST
91+
)
92+
);
9193
return;
9294
}
9395

9496
UnifiedCompletionAction.Request unifiedRequest;
95-
try (var parser = XContentHelper.createParser(XContentParserConfiguration.EMPTY, request.getContent(), request.getContentType())) {
97+
try (
98+
var parser = XContentHelper.createParser(XContentParserConfiguration.EMPTY, request.getContent(), request.getContentType())
99+
) {
96100
unifiedRequest = UnifiedCompletionAction.Request.parseRequest(
97101
request.getInferenceEntityId(),
98102
request.getTaskType(),

0 commit comments

Comments
 (0)