mirror of https://github.com/langgenius/dify.git
fixing Enum part in backend and making it same as front end (#22296)
This commit is contained in:
parent
df886259bd
commit
1b26f9a4c6
|
|
@ -95,7 +95,7 @@ class WeightKeywordSetting(BaseModel):
|
|||
|
||||
|
||||
class WeightModel(BaseModel):
|
||||
weight_type: Optional[str] = None
|
||||
weight_type: Optional[Literal["semantic_first", "keyword_first", "customized"]] = None
|
||||
vector_setting: Optional[WeightVectorSetting] = None
|
||||
keyword_setting: Optional[WeightKeywordSetting] = None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue