Skip to content

Commit

Permalink
Remove strict version dependency to compile minimum compatible version
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed May 30, 2024
1 parent 58eff14 commit c3b1050
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class MLAgent implements ToXContentObject, Writeable {
public static final String APP_TYPE_FIELD = "app_type";
public static final String IS_HIDDEN_FIELD = "is_hidden";

private static final Version MINIMAL_SUPPORTED_VERSION_FOR_HIDDEN_AGENT = Version.V_2_13_0;
private static final Version MINIMAL_SUPPORTED_VERSION_FOR_HIDDEN_AGENT = Version.fromId(2130099);

private String name;
private String type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class TextDocsInputDataSet extends MLInputDataset{

private List<String> docs;

private static final Version MINIMAL_SUPPORTED_VERSION_FOR_MULTI_MODAL = Version.V_2_11_0;
private static final Version MINIMAL_SUPPORTED_VERSION_FOR_MULTI_MODAL = Version.fromId(2110099);

@Builder(toBuilder = true)
public TextDocsInputDataSet(List<String> docs, ModelResultFilter resultFilter) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class MLDeploySetting implements ToXContentObject, Writeable {
public static final String IS_AUTO_DEPLOY_ENABLED_FIELD = "is_auto_deploy_enabled";
public static final String MODEL_TTL_MINUTES_FIELD = "model_ttl_minutes";
private static final long DEFAULT_TTL_MINUTES = -1;
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_MODEL_TTL = Version.V_2_14_0;
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_MODEL_TTL = Version.fromId(2140099);

private Boolean isAutoDeployEnabled;
private Long modelTTLInMinutes; // in minutes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class MLCreateConnectorInput implements ToXContentObject, Writeable {
public static final String ACCESS_MODE_FIELD = "access_mode";
public static final String DRY_RUN_FIELD = "dry_run";

private static final Version MINIMAL_SUPPORTED_VERSION_FOR_CLIENT_CONFIG = Version.V_2_13_0;
private static final Version MINIMAL_SUPPORTED_VERSION_FOR_CLIENT_CONFIG = Version.fromId(2130099);

public static final String DRY_RUN_CONNECTOR_NAME = "dryRunConnector";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public class MLRegisterModelInput implements ToXContentObject, Writeable {
public static final String DOES_VERSION_CREATE_MODEL_GROUP = "does_version_create_model_group";
public static final String GUARDRAILS_FIELD = "guardrails";

public static final Version MINIMAL_SUPPORTED_VERSION_FOR_DOES_VERSION_CREATE_MODEL_GROUP = Version.V_2_11_0;
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_AGENT_FRAMEWORK = Version.V_2_12_0;
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_GUARDRAILS_AND_AUTO_DEPLOY = Version.V_2_13_0;
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_INTERFACE = Version.V_2_14_0;
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_DOES_VERSION_CREATE_MODEL_GROUP = Version.fromId(2110099);
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_AGENT_FRAMEWORK = Version.fromId(2120099);
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_GUARDRAILS_AND_AUTO_DEPLOY = Version.fromId(2130099);
public static final Version MINIMAL_SUPPORTED_VERSION_FOR_INTERFACE = Version.fromId(2140099);

private FunctionName functionName;
private String modelName;
Expand Down

0 comments on commit c3b1050

Please sign in to comment.