Skip to content

Commit 1d8d641

Browse files
committed
format
1 parent 26f1ac3 commit 1d8d641

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/request/elastic/ElasticInferenceServiceSparseEmbeddingsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import org.elasticsearch.xpack.inference.common.Truncator;
1717
import org.elasticsearch.xpack.inference.external.request.HttpRequest;
1818
import org.elasticsearch.xpack.inference.external.request.Request;
19+
import org.elasticsearch.xpack.inference.external.request.TraceContextPropagator;
1920
import org.elasticsearch.xpack.inference.services.elastic.ElasticInferenceServiceSparseEmbeddingsModel;
2021
import org.elasticsearch.xpack.inference.telemetry.TraceContext;
21-
import org.elasticsearch.xpack.inference.external.request.TraceContextPropagator;
2222

2323
import java.net.URI;
2424
import java.nio.charset.StandardCharsets;

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/unified/UnifiedChatCompletionRequestEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
136136
builder.endObject();
137137
}
138138
}
139-
boolean usesTools = unifiedRequest.tools() != null && unifiedRequest.tools().isEmpty() == false;
139+
boolean usesTools = unifiedRequest.tools() != null && unifiedRequest.tools().isEmpty() == false;
140140

141141
if (usesTools) {
142142
builder.startArray(TOOL_FIELD);

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ protected void doUnifiedCompletionInfer(
112112
String.format(Locale.ROOT, "%s completions", ELASTIC_INFERENCE_SERVICE_IDENTIFIER)
113113
);
114114

115-
var requestManager = ElasticInferenceServiceUnifiedCompletionRequestManager.of(overriddenModel, getServiceComponents().threadPool(), currentTraceInfo);
115+
var requestManager = ElasticInferenceServiceUnifiedCompletionRequestManager.of(
116+
overriddenModel,
117+
getServiceComponents().threadPool(),
118+
currentTraceInfo
119+
);
116120
var action = new SenderExecutableAction(getSender(), requestManager, errorMessage);
117121

118122
action.execute(inputs, timeout, listener);

0 commit comments

Comments
 (0)