balibabu
commited on
Commit
·
dc07f22
1
Parent(s):
3abc590
fix: fixed the issue of error reporting when saving chat configuration #965 (#984)
Browse files### 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
CHANGED
@@ -145,7 +145,8 @@ const ChatConfigurationModal = ({
|
|
145 |
settledModelVariableMap[ModelVariableType.Precise],
|
146 |
icon: fileList,
|
147 |
llm_id: initialDialog.llm_id ?? modelId,
|
148 |
-
vector_similarity_weight:
|
|
|
149 |
});
|
150 |
}
|
151 |
}, [initialDialog, form, visible, modelId]);
|
|
|
145 |
settledModelVariableMap[ModelVariableType.Precise],
|
146 |
icon: fileList,
|
147 |
llm_id: initialDialog.llm_id ?? modelId,
|
148 |
+
vector_similarity_weight:
|
149 |
+
1 - (initialDialog.vector_similarity_weight ?? 0.3),
|
150 |
});
|
151 |
}
|
152 |
}, [initialDialog, form, visible, modelId]);
|