From c62834f870d8731bc9cfa7e6852c12ebd7ef7dba Mon Sep 17 00:00:00 2001 From: balibabu Date: Thu, 30 May 2024 11:10:54 +0800 Subject: [PATCH] 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) --- web/src/pages/chat/chat-configuration-modal/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/pages/chat/chat-configuration-modal/index.tsx b/web/src/pages/chat/chat-configuration-modal/index.tsx index ce8451f7c..9465c0a80 100644 --- a/web/src/pages/chat/chat-configuration-modal/index.tsx +++ b/web/src/pages/chat/chat-configuration-modal/index.tsx @@ -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]);