Skip to content

Commit

Permalink
fix: model properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Jan 3, 2025
1 parent cc2ae5a commit 3d6ad98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ type ModelDeclaration struct {
ModelType ModelType `json:"model_type" yaml:"model_type" validate:"required,model_type"`
Features []string `json:"features" yaml:"features" validate:"omitempty,lte=256,dive,lt=256"`
FetchFrom ModelProviderConfigurateMethod `json:"fetch_from" yaml:"fetch_from" validate:"omitempty,model_provider_configurate_method"`
ModelProperties map[string]any `json:"model_properties" yaml:"model_properties" validate:"omitempty,dive,is_basic_type"`
ModelProperties map[string]any `json:"model_properties" yaml:"model_properties" validate:"omitempty"`
Deprecated bool `json:"deprecated" yaml:"deprecated"`
ParameterRules []ModelParameterRule `json:"parameter_rules" yaml:"parameter_rules" validate:"omitempty,lte=128,dive,parameter_rule"`
PriceConfig *ModelPriceConfig `json:"pricing" yaml:"pricing" validate:"omitempty"`
Expand Down

0 comments on commit 3d6ad98

Please sign in to comment.