fix: fixed the issue of error reporting when saving chat configuration #965 (#984)

### What problem does this PR solve?

fix: fixed the issue of error reporting when saving chat configuration
#965

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-05-30 11:10:54 +08:00 committed by GitHub
parent 0171082cc5
commit c62834f870
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,7 +145,8 @@ const ChatConfigurationModal = ({
settledModelVariableMap[ModelVariableType.Precise],
icon: fileList,
llm_id: initialDialog.llm_id ?? modelId,
vector_similarity_weight: 1 - initialDialog.vector_similarity_weight,
vector_similarity_weight:
1 - (initialDialog.vector_similarity_weight ?? 0.3),
});
}
}, [initialDialog, form, visible, modelId]);