fixing Enum part in backend and making it same as front end

pull/22296/head
jubinsoni 10 months ago
parent 016ff0feae
commit 49be299955

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

Loading…
Cancel
Save