diff --git a/api/gallery.go b/api/gallery.go index 3d8a798d..cb165f84 100644 --- a/api/gallery.go +++ b/api/gallery.go @@ -110,7 +110,7 @@ func (g *galleryApplier) start(c context.Context, cm *ConfigMerger) { type ApplyGalleryModelRequest struct { URL string `json:"url"` Name string `json:"name"` - AdditionalFiles []gallery.File `json:"file"` + AdditionalFiles []gallery.File `json:"files"` } func getOpStatus(g *galleryApplier) func(c *fiber.Ctx) error { diff --git a/pkg/gallery/models.go b/pkg/gallery/models.go index 8663ddca..9211a6f0 100644 --- a/pkg/gallery/models.go +++ b/pkg/gallery/models.go @@ -51,9 +51,9 @@ type Config struct { } type File struct { - Filename string `yaml:"filename"` - SHA256 string `yaml:"sha256"` - URI string `yaml:"uri"` + Filename string `yaml:"filename" json:"filename"` + SHA256 string `yaml:"sha256" json:"sha256"` + URI string `yaml:"uri" json:"uri"` } type PromptTemplate struct {