From 3d6ad98913e6630207d2016a7f620b299e96e075 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Sat, 4 Jan 2025 00:44:16 +0800 Subject: [PATCH] fix: model properties --- internal/types/entities/plugin_entities/model_declaration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/types/entities/plugin_entities/model_declaration.go b/internal/types/entities/plugin_entities/model_declaration.go index 09f71ea..785f9d0 100644 --- a/internal/types/entities/plugin_entities/model_declaration.go +++ b/internal/types/entities/plugin_entities/model_declaration.go @@ -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"`