mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-29 22:20:43 +00:00
refactor: rename fields
This commit is contained in:
parent
5c8697d08a
commit
e88949d9c3
2 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue