2024-03-01 15:19:53 +00:00
|
|
|
package gallery
|
|
|
|
|
2024-06-24 15:32:12 +00:00
|
|
|
import "github.com/mudler/LocalAI/core/config"
|
|
|
|
|
2024-03-01 15:19:53 +00:00
|
|
|
type GalleryOp struct {
|
2024-05-06 23:17:07 +00:00
|
|
|
Id string
|
|
|
|
GalleryModelName string
|
|
|
|
ConfigURL string
|
|
|
|
Delete bool
|
2024-04-23 07:22:58 +00:00
|
|
|
|
|
|
|
Req GalleryModel
|
2024-06-24 15:32:12 +00:00
|
|
|
Galleries []config.Gallery
|
2024-03-01 15:19:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type GalleryOpStatus struct {
|
2024-04-28 21:42:46 +00:00
|
|
|
Deletion bool `json:"deletion"` // Deletion is true if the operation is a deletion
|
2024-03-01 15:19:53 +00:00
|
|
|
FileName string `json:"file_name"`
|
|
|
|
Error error `json:"error"`
|
|
|
|
Processed bool `json:"processed"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
Progress float64 `json:"progress"`
|
|
|
|
TotalFileSize string `json:"file_size"`
|
|
|
|
DownloadedFileSize string `json:"downloaded_size"`
|
2024-05-06 23:17:07 +00:00
|
|
|
GalleryModelName string `json:"gallery_model_name"`
|
2024-03-01 15:19:53 +00:00
|
|
|
}
|