mirror of https://github.com/langgenius/dify.git
fix: set default logic error
This commit is contained in:
parent
ae197fb2ba
commit
b060b773ef
|
|
@ -96,10 +96,10 @@ const useConfig = (id: string, payload: KnowledgeRetrievalNodeType) => {
|
|||
// set defaults models
|
||||
useEffect(() => {
|
||||
const inputs = inputRef.current
|
||||
if (inputs.retrieval_mode === RETRIEVE_TYPE.multiWay && !inputs.multiple_retrieval_config?.reranking_model?.provider)
|
||||
if (inputs.retrieval_mode === RETRIEVE_TYPE.multiWay && inputs.multiple_retrieval_config?.reranking_model?.provider)
|
||||
return
|
||||
|
||||
if (inputs.retrieval_mode === RETRIEVE_TYPE.oneWay && !inputs.single_retrieval_config?.model?.provider)
|
||||
if (inputs.retrieval_mode === RETRIEVE_TYPE.oneWay && inputs.single_retrieval_config?.model?.provider)
|
||||
return
|
||||
|
||||
const newInput = produce(inputs, (draft) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue