Skip to content

Commit c309aac

Browse files
authored
fix(gallery): use inline YAML (#851)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 1e37ec7 commit c309aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/localai/gallery.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ func (g *galleryApplier) Start(c context.Context, cm *config.ConfigLoader) {
129129
}
130130

131131
type galleryModel struct {
132-
gallery.GalleryModel
133-
ID string `json:"id"`
132+
gallery.GalleryModel `yaml:",inline"` // https://github.com/go-yaml/yaml/issues/63
133+
ID string `json:"id"`
134134
}
135135

136136
func processRequests(modelPath, s string, cm *config.ConfigLoader, galleries []gallery.Gallery, requests []galleryModel) error {

0 commit comments

Comments
 (0)