Skip to content

Commit

Permalink
[8.x] Remove feature flag check in BaseTransportInferenceAction and r…
Browse files Browse the repository at this point in the history
…ely on Noop implementation (#121270) (#121639)
  • Loading branch information
timgrein authored Feb 4, 2025
1 parent 2fac3cc commit 651c23a
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

import static org.elasticsearch.core.Strings.format;
import static org.elasticsearch.xpack.inference.InferencePlugin.INFERENCE_API_FEATURE;
import static org.elasticsearch.xpack.inference.common.InferenceAPIClusterAwareRateLimitingFeature.INFERENCE_API_CLUSTER_AWARE_RATE_LIMITING_FEATURE_FLAG;
import static org.elasticsearch.xpack.inference.telemetry.InferenceStats.modelAttributes;
import static org.elasticsearch.xpack.inference.telemetry.InferenceStats.responseAttributes;

Expand Down Expand Up @@ -188,10 +187,6 @@ private void validateRequest(Request request, UnparsedModel unparsedModel) {
}

private NodeRoutingDecision determineRouting(String serviceName, Request request, UnparsedModel unparsedModel) {
if (INFERENCE_API_CLUSTER_AWARE_RATE_LIMITING_FEATURE_FLAG.isEnabled() == false) {
return NodeRoutingDecision.handleLocally();
}

var modelTaskType = unparsedModel.taskType();

// Rerouting not supported or request was already rerouted
Expand Down

0 comments on commit 651c23a

Please sign in to comment.