mark weight type as optional (#16701)

This commit is contained in:
Jyong 2025-03-25 14:19:26 +08:00 committed by GitHub
parent a113356695
commit 78f2ec8f32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ class WeightKeywordSetting(BaseModel):
class WeightModel(BaseModel): class WeightModel(BaseModel):
weight_type: str weight_type: Optional[str] = None
vector_setting: Optional[WeightVectorSetting] = None vector_setting: Optional[WeightVectorSetting] = None
keyword_setting: Optional[WeightKeywordSetting] = None keyword_setting: Optional[WeightKeywordSetting] = None