Skip to content

Commit cfc354a

Browse files
committed
Updated version
Signed-off-by: Owais Kazi <[email protected]>
1 parent e3fe937 commit cfc354a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

common/src/main/java/org/opensearch/ml/common/CommonValue.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public class CommonValue {
9797
public static final Version VERSION_3_1_0 = Version.fromString("3.1.0");
9898
public static final Version VERSION_3_2_0 = Version.fromString("3.2.0");
9999
public static final Version VERSION_3_3_0 = Version.fromString("3.3.0");
100+
public static final Version VERSION_3_4_0 = Version.fromString("3.4.0");
100101

101102
// Connector Constants
102103
public static final String NAME_FIELD = "name";

common/src/main/java/org/opensearch/ml/common/transport/agent/MLAgentUpdateInput.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import static org.opensearch.core.xcontent.XContentParserUtils.ensureExpectedToken;
99
import static org.opensearch.ml.common.CommonValue.TENANT_ID_FIELD;
1010
import static org.opensearch.ml.common.CommonValue.VERSION_2_19_0;
11-
import static org.opensearch.ml.common.CommonValue.VERSION_3_3_0;
11+
import static org.opensearch.ml.common.CommonValue.VERSION_3_4_0;
1212
import static org.opensearch.ml.common.utils.StringUtils.getParameterMap;
1313

1414
import java.io.IOException;
@@ -110,7 +110,7 @@ public MLAgentUpdateInput(StreamInput in) throws IOException {
110110
Version streamInputVersion = in.getVersion();
111111
agentId = in.readString();
112112
name = in.readOptionalString();
113-
type = streamInputVersion.onOrAfter(VERSION_3_3_0) ? in.readOptionalString() : null;
113+
type = streamInputVersion.onOrAfter(VERSION_3_4_0) ? in.readOptionalString() : null;
114114
description = in.readOptionalString();
115115
llmModelId = in.readOptionalString();
116116
if (in.readBoolean()) {
@@ -194,7 +194,7 @@ public void writeTo(StreamOutput out) throws IOException {
194194
Version streamOutputVersion = out.getVersion();
195195
out.writeString(agentId);
196196
out.writeOptionalString(name);
197-
if (streamOutputVersion.onOrAfter(VERSION_3_3_0)) {
197+
if (streamOutputVersion.onOrAfter(VERSION_3_4_0)) {
198198
out.writeOptionalString(type);
199199
}
200200
out.writeOptionalString(description);

0 commit comments

Comments
 (0)