Skip to content

Commit 64c0685

Browse files
Removed if statement checking TransportVersion for HuggingFaceChatCompletionServiceSettings constructor with StreamInput param
1 parent 61537d0 commit 64c0685

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/huggingface/completion/HuggingFaceChatCompletionServiceSettings.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,7 @@ public HuggingFaceChatCompletionServiceSettings(@Nullable String modelId, URI ur
9999
public HuggingFaceChatCompletionServiceSettings(StreamInput in) throws IOException {
100100
this.modelId = in.readOptionalString();
101101
this.uri = createUri(in.readString());
102-
103-
if (in.getTransportVersion().onOrAfter(TransportVersions.V_8_15_0)) {
104-
this.rateLimitSettings = new RateLimitSettings(in);
105-
} else {
106-
this.rateLimitSettings = DEFAULT_RATE_LIMIT_SETTINGS;
107-
}
102+
this.rateLimitSettings = new RateLimitSettings(in);
108103
}
109104

110105
@Override

0 commit comments

Comments
 (0)