Embeddings- Clean up modal + "Important" call out (#1903)

This commit is contained in:
pablodanswer 2024-07-22 21:29:22 -07:00 committed by GitHub
parent a0b46c60c6
commit 9c6084bd0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -36,8 +36,7 @@ export function ModelSelectionConfirmationModal({
at least 16GB of RAM to Danswer during this process.
</Text>
{/* TODO Change this back- ensure functional */}
{!isCustom && (
{isCustom && (
<Callout title="IMPORTANT" color="yellow" className="mt-4">
We&apos;ve detected that this is a custom-specified embedding
model. Since we have to download the model files before verifying

View File

@ -149,6 +149,7 @@ function Main() {
}
);
if (response.ok) {
setShowTentativeOpenProvider(null);
setShowTentativeModel(null);
mutate("/api/secondary-index/get-secondary-embedding-model");
if (!connectors || !connectors.length) {
@ -274,6 +275,7 @@ function Main() {
onClose={() => setAlreadySelectedModel(null)}
/>
)}
{showTentativeOpenProvider && (
<ModelSelectionConfirmationModal
selectedModel={showTentativeOpenProvider}