enhance: chat with LLM

This commit is contained in:
Jacky 2024-05-02 12:49:01 +08:00
parent e84ea98be9
commit 642e21a260
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
40 changed files with 544 additions and 250 deletions

View file

@ -10,7 +10,7 @@ type ConfigBackup struct {
Model
Name string `json:"name"`
FilePath string `json:"file_path"`
FilePath string `json:"filepath"`
Content string `json:"content" gorm:"type:text"`
}
@ -18,7 +18,7 @@ type ConfigBackupListItem struct {
Model
Name string `json:"name"`
FilePath string `json:"file_path"`
FilePath string `json:"filepath"`
}
func GetBackupList(path string) (configs []ConfigBackupListItem) {