Skip to content

Commit a2c3d11

Browse files
committed
iter
1 parent 25d0079 commit a2c3d11

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

server/src/main/java/org/elasticsearch/inference/InferenceServiceRegistry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public Map<String, InferenceService> getServices() {
4646
}
4747

4848
public Optional<InferenceService> getService(String serviceName) {
49+
4950
if ("elser".equals(serviceName)) { // ElserService.NAME before removal
5051
// here we are aliasing the elser service to use the elasticsearch service instead
5152
return Optional.ofNullable(services.get("elasticsearch")); // ElasticsearchInternalService.NAME

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ public Request(String inferenceEntityId, TaskType taskType, boolean persistDefau
5555
this(inferenceEntityId, taskType, persistDefaultConfig, false);
5656
}
5757

58-
public Request(String inferenceEntityId, TaskType taskType, boolean persistDefaultConfig, boolean isMinimal) {
58+
public Request(String inferenceEntityId, TaskType taskType, boolean persistDefaultConfig, boolean returnMinimalConfig) {
5959
super(TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT, DEFAULT_ACK_TIMEOUT);
6060
this.inferenceEntityId = Objects.requireNonNull(inferenceEntityId);
6161
this.taskType = Objects.requireNonNull(taskType);
6262
this.persistDefaultConfig = persistDefaultConfig;
63-
this.returnMinimalConfig = isMinimal;
63+
this.returnMinimalConfig = returnMinimalConfig;
6464
}
6565

6666
public Request(StreamInput in) throws IOException {

0 commit comments

Comments
 (0)