Skip to content

Commit

Permalink
fix: fixed the issue of error reporting when saving chat configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed May 30, 2024
1 parent 0171082 commit 690901a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/pages/chat/chat-configuration-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 690901a

Please sign in to comment.