Skip to content

Commit 1d486b6

Browse files
[CI] Auto commit changes from spotless
1 parent 72541c0 commit 1d486b6

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/inference/completion/CompletionOperatorRequestIterator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public String readPrompt(int pos) {
6868
for (int valueIndex = 0; valueIndex < promptBlock.getValueCount(pos); valueIndex++) {
6969
readBuffer = promptBlock.getBytesRef(promptBlock.getFirstValueIndex(pos) + valueIndex, readBuffer);
7070
strBuilder.append(readBuffer.utf8ToString());
71-
if (valueIndex != promptBlock.getValueCount(pos) -1) {
71+
if (valueIndex != promptBlock.getValueCount(pos) - 1) {
7272
strBuilder.append("\n");
7373
}
7474
}

x-pack/plugin/inference/qa/test-service-plugin/src/main/java/org/elasticsearch/xpack/inference/mock/TestCompletionServiceExtension.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,15 @@ public void unifiedCompletionInfer(
132132
}
133133

134134
@Override
135-
public void chunkedInfer(Model model, String query, List<ChunkInferenceInput> input, Map<String, Object> taskSettings, InputType inputType, TimeValue timeout, ActionListener<List<ChunkedInference>> listener) {
135+
public void chunkedInfer(
136+
Model model,
137+
String query,
138+
List<ChunkInferenceInput> input,
139+
Map<String, Object> taskSettings,
140+
InputType inputType,
141+
TimeValue timeout,
142+
ActionListener<List<ChunkedInference>> listener
143+
) {
136144
listener.onFailure(
137145
new ElasticsearchStatusException(
138146
TaskType.unsupportedTaskTypeErrorMsg(model.getConfigurations().getTaskType(), name()),
@@ -143,7 +151,7 @@ public void chunkedInfer(Model model, String query, List<ChunkInferenceInput> in
143151

144152
private InferenceServiceResults makeChatCompletionResults(List<String> inputs) {
145153
List<ChatCompletionResults.Result> results = new ArrayList<>();
146-
for (String text: inputs) {
154+
for (String text : inputs) {
147155
results.add(new ChatCompletionResults.Result(text.toUpperCase(Locale.ROOT)));
148156
}
149157

0 commit comments

Comments
 (0)