Browse Source

fix: required yaml inline tag for alias of ModelCredentialOption

Yeuoly 8 months ago
parent
commit
94f176b3a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/types/entities/plugin_entities/model_declaration.go

+ 1 - 1
internal/types/entities/plugin_entities/model_declaration.go

@@ -482,7 +482,7 @@ func (m *ModelProviderFormOption) UnmarshalYAML(value *yaml.Node) error {
 	// avoid show_on to be nil
 	type Alias ModelProviderFormOption
 	aux := &struct {
-		*Alias
+		*Alias `yaml:",inline"`
 	}{
 		Alias: (*Alias)(m),
 	}