Skip to content

Commit

Permalink
change default value of cluster setting
Browse files Browse the repository at this point in the history
Signed-off-by: xinyual <[email protected]>
  • Loading branch information
xinyual committed Jan 16, 2025
1 parent 68773e5 commit 99e11ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public AgentModelsSearcher(Map<String, Tool.Factory> toolFactories) {
relatedModelIdSet = new HashSet<>();
for (Map.Entry<String, Tool.Factory> entry : toolFactories.entrySet()) {
Tool.Factory toolFactory = entry.getValue();
if (toolFactory instanceof WithModelTool.Factory withModelTool) {
if (toolFactory instanceof WithModelTool.Factory) {
WithModelTool.Factory withModelTool = (WithModelTool.Factory) toolFactory;
relatedModelIdSet.addAll(withModelTool.getAllModelKeys());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,5 @@ private MLCommonsSettings() {}
.boolSetting("plugins.ml_commons.controller_enabled", true, Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<Boolean> ML_COMMONS_SAFE_DELETE_MODEL = Setting
.boolSetting("plugins.ml_commons.safe_delete_model", true, Setting.Property.NodeScope, Setting.Property.Dynamic);
.boolSetting("plugins.ml_commons.safe_delete_model", false, Setting.Property.NodeScope, Setting.Property.Dynamic);
}

0 comments on commit 99e11ee

Please sign in to comment.