This commit is contained in:
2023-04-28 06:36:29 +08:00
parent 115d948d0f
commit 8ae72dd983
3 changed files with 26 additions and 22 deletions

View File

@@ -54,7 +54,7 @@ type Model struct {
ModelPath string `json:"model_path"` // 模型路徑
Status string `json:"status"` // (waiting|running|success|error)
Progress int `json:"progress"` // (0-100)
Tags []string `json:"tags"`
Tags string `json:"tags"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

View File

@@ -37,8 +37,12 @@ func init() {
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
type TEXT,
trigger_words TEXT,
base_model TEXT,
model_path TEXT,
status TEXT,
progress INTEGER,
tags TEXT,
created_at TEXT,
updated_at TEXT
);

View File

@@ -14,7 +14,7 @@ type Model struct {
ModelPath string `json:"model_path"` // 模型路徑
Status string `json:"status"` // (waiting|running|success|error)
Progress int `json:"progress"` // (0-100)
Tags []string `json:"tags"`
Tags string `json:"tags"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}