Skip to content

Commit

Permalink
fix: yaml embeded struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Sep 3, 2024
1 parent c8f699c commit 53b0d9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/types/entities/plugin_entities/plugin_declaration.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ type PluginDeclarationWithoutAdvancedFields struct {
}

type PluginDeclaration struct {
PluginDeclarationWithoutAdvancedFields
Endpoint *EndpointProviderDeclaration `json:"endpoint,omitempty" yaml:"endpoint,omitempty" validate:"omitempty"`
Model *ModelProviderConfiguration `json:"model,omitempty" yaml:"model,omitempty" validate:"omitempty"`
Tool *ToolProviderConfiguration `json:"tool,omitempty" yaml:"tool,omitempty" validate:"omitempty"`
PluginDeclarationWithoutAdvancedFields `yaml:",inline"`
Endpoint *EndpointProviderDeclaration `json:"endpoint,omitempty" yaml:"endpoint,omitempty" validate:"omitempty"`
Model *ModelProviderConfiguration `json:"model,omitempty" yaml:"model,omitempty" validate:"omitempty"`
Tool *ToolProviderConfiguration `json:"tool,omitempty" yaml:"tool,omitempty" validate:"omitempty"`
}

var (
Expand Down

0 comments on commit 53b0d9f

Please sign in to comment.