ソースを参照

fix: required yaml inline tag for alias of ModelCredentialOption

Yeuoly 8 ヶ月 前
コミット
94f176b3a5
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  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),
 	}