mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 00:15:57 +08:00
mark weight type as optional (#16701)
This commit is contained in:
parent
a113356695
commit
78f2ec8f32
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user