Skip to content

Commit 157a0ec

Browse files
committed
finish
1 parent 761f4e7 commit 157a0ec

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConfigManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@ public TSStatus createTraining(TCreateTrainingReq req) {
26852685

26862686
TTrainingReq trainingReq = new TTrainingReq();
26872687
trainingReq.setModelId(req.getModelId());
2688-
trainingReq.setModelType("timer_xl");
2688+
trainingReq.setModelType("sundial");
26892689
if (req.existingModelId != null) {
26902690
trainingReq.setExistingModelId(req.getExistingModelId());
26912691
}

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/metadata/ai/CreateTrainingTask.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ public CreateTrainingTask(
5353
String existingModelId,
5454
List<String> targetTables,
5555
List<String> targetDbs) {
56-
if (!modelType.equalsIgnoreCase("timer_xl")) {
57-
throw new UnsupportedOperationException("Only TimerXL model is supported now.");
58-
}
5956
this.modelId = modelId;
6057
this.modelType = modelType;
6158
this.parameters = parameters;
@@ -76,9 +73,6 @@ public CreateTrainingTask(
7673
List<List<Long>> timeRanges,
7774
String existingModelId,
7875
List<String> targetPaths) {
79-
if (!modelType.equalsIgnoreCase("timer_xl")) {
80-
throw new UnsupportedOperationException("Only TimerXL model is supported now.");
81-
}
8276
this.modelId = modelId;
8377
this.modelType = modelType;
8478
this.parameters = parameters;

0 commit comments

Comments
 (0)