Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
098ba6ea
"src/tl_templates/vscode:/vscode.git/clone" did not exist on "c85bb3acb0b9d2fe96f69b76d7d6ca3342a3d875"
Commit
098ba6ea
authored
Apr 10, 2024
by
Timothy J. Baek
Browse files
refac: frontend
parent
582d11f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
src/lib/components/documents/Settings/General.svelte
src/lib/components/documents/Settings/General.svelte
+3
-11
No files found.
src/lib/components/documents/Settings/General.svelte
View file @
098ba6ea
...
...
@@ -35,9 +35,6 @@
k: 4
};
let embeddingModelConfig = {
embedding_model: ''
};
let embeddingModel = '';
const scanHandler = async () => {
...
...
@@ -66,9 +63,9 @@
updateEmbeddingModelLoading = true;
const res = await updateEmbeddingModel(localStorage.token, {
embedding_model: embeddingModel
}).catch((error) => {
}).catch(
async
(error) => {
toast.error(error);
embeddingModel =
e
mbeddingModel
Config
.embedding_model;
embeddingModel =
(await getE
mbeddingModel
(localStorage.token))
.embedding_model;
return null;
});
updateEmbeddingModelLoading = false;
...
...
@@ -79,10 +76,6 @@
toast.success($i18n.t('Model {{embedding_model}} update complete!', res), {
duration: 1000 * 10
});
} else {
toast.error($i18n.t('Model {{embedding_model}} update failed or not required!', res), {
duration: 1000 * 10
});
}
}
};
...
...
@@ -108,8 +101,7 @@
chunkOverlap = res.chunk.chunk_overlap;
}
embeddingModelConfig = await getEmbeddingModel(localStorage.token);
embeddingModel = embeddingModelConfig.embedding_model;
embeddingModel = (await getEmbeddingModel(localStorage.token)).embedding_model;
querySettings = await getQuerySettings(localStorage.token);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment