From c309aac8f5937334cea99405eed441ce8441e3c0 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 1 Aug 2023 19:09:32 +0200 Subject: [PATCH] fix(gallery): use inline YAML (#851) Signed-off-by: Ettore Di Giacinto --- api/localai/gallery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/localai/gallery.go b/api/localai/gallery.go index b4180ada..c15ab553 100644 --- a/api/localai/gallery.go +++ b/api/localai/gallery.go @@ -129,8 +129,8 @@ func (g *galleryApplier) Start(c context.Context, cm *config.ConfigLoader) { } type galleryModel struct { - gallery.GalleryModel - ID string `json:"id"` + gallery.GalleryModel `yaml:",inline"` // https://github.com/go-yaml/yaml/issues/63 + ID string `json:"id"` } func processRequests(modelPath, s string, cm *config.ConfigLoader, galleries []gallery.Gallery, requests []galleryModel) error {