Skip to content

Commit 503fb4b

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 01b60d6 commit 503fb4b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/http/sender/ElasticInferenceServiceUnifiedCompletionRequestManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public void execute(
7474
private static ResponseHandler createCompletionHandler() {
7575
return new ElasticInferenceServiceUnifiedChatCompletionResponseHandler(
7676
"elastic inference service completion",
77-
// We use OpenAiChatCompletionResponseEntity here as the ElasticInferenceServiceResponseEntity fields are a subset of the OpenAI one.
77+
// We use OpenAiChatCompletionResponseEntity here as the ElasticInferenceServiceResponseEntity fields are a subset of the OpenAI
78+
// one.
7879
OpenAiChatCompletionResponseEntity::fromResponse
7980
);
8081
}

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elastic/ElasticInferenceServiceSparseEmbeddingsModel.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ private URI createUri() throws ElasticsearchStatusException {
101101
switch (modelId) {
102102
case ElserModels.ELSER_V2_MODEL -> modelIdUriPath = "ELSERv2";
103103
default -> throw new ElasticsearchStatusException(
104-
String.format(Locale.ROOT, "Unsupported model [%s] for service [%s] and task type [%s]", modelId, ELASTIC_INFERENCE_SERVICE_IDENTIFIER, TaskType.SPARSE_EMBEDDING),
104+
String.format(
105+
Locale.ROOT,
106+
"Unsupported model [%s] for service [%s] and task type [%s]",
107+
modelId,
108+
ELASTIC_INFERENCE_SERVICE_IDENTIFIER,
109+
TaskType.SPARSE_EMBEDDING
110+
),
105111
RestStatus.BAD_REQUEST
106112
);
107113
}

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/elastic/completion/EISCompletionServiceSettingsTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
import static org.hamcrest.Matchers.containsString;
2727
import static org.hamcrest.Matchers.is;
2828

29-
public class ElasticInferenceServiceCompletionServiceSettingsTests extends AbstractWireSerializingTestCase<ElasticInferenceServiceCompletionServiceSettings> {
29+
public class ElasticInferenceServiceCompletionServiceSettingsTests extends AbstractWireSerializingTestCase<
30+
ElasticInferenceServiceCompletionServiceSettings> {
3031

3132
@Override
3233
protected Writeable.Reader<ElasticInferenceServiceCompletionServiceSettings> instanceReader() {

0 commit comments

Comments
 (0)