Skip to content

Commit feb5c93

Browse files
committed
feat(model): ModelLoaderController sınıfı silindi; ModelDataLoader sınıfı güncellendi ve model yükleme süreci iyileştirildi
1 parent 95216ec commit feb5c93

File tree

3 files changed

+173
-680
lines changed

3 files changed

+173
-680
lines changed

user-service/src/main/java/com/craftpilot/userservice/controller/ModelLoaderController.java

Lines changed: 0 additions & 89 deletions
This file was deleted.

user-service/src/main/java/com/craftpilot/userservice/model/ai/AIModel.java

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.springframework.data.annotation.Id;
88
import org.springframework.data.mongodb.core.index.Indexed;
99
import org.springframework.data.mongodb.core.mapping.Document;
10+
1011
import java.time.LocalDateTime;
1112

1213
@Data
@@ -15,11 +16,13 @@
1516
@AllArgsConstructor
1617
@Document(collection = "ai_models")
1718
public class AIModel {
19+
1820
@Id
1921
private String id;
2022

2123
@Indexed(unique = true)
22-
private String modelId;
24+
private String modelId;
25+
2326
private String modelName;
2427
private String provider;
2528
private String providerId;
@@ -29,16 +32,7 @@ public class AIModel {
2932
private String creditType;
3033
private String category;
3134
private Integer contextLength;
32-
private Boolean isActive;
35+
private boolean active = true;
3336
private LocalDateTime createdAt;
3437
private LocalDateTime updatedAt;
35-
36-
// Additional helper methods
37-
public void setActive(boolean active) {
38-
this.isActive = active;
39-
}
40-
41-
public boolean getActive() {
42-
return this.isActive != null ? this.isActive : false;
43-
}
4438
}

0 commit comments

Comments
 (0)