mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
fix: score_threshold_enabled variable (#1627)
This commit is contained in:
@ -114,12 +114,12 @@ const RetrievalParamConfig: FC<Props> = ({
|
||||
score_threshold: v,
|
||||
})
|
||||
}}
|
||||
enable={value.score_threshold_enable}
|
||||
enable={value.score_threshold_enabled}
|
||||
hasSwitch={true}
|
||||
onSwitchChange={(_key, v) => {
|
||||
onChange({
|
||||
...value,
|
||||
score_threshold_enable: v,
|
||||
score_threshold_enabled: v,
|
||||
})
|
||||
}}
|
||||
/>
|
||||
|
||||
@ -493,7 +493,7 @@ const StepTwo = ({
|
||||
reranking_model_name: rerankDefaultModel?.model_name,
|
||||
},
|
||||
top_k: 3,
|
||||
score_threshold_enable: false,
|
||||
score_threshold_enabled: false,
|
||||
score_threshold: 0.5,
|
||||
} as RetrievalConfig)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user