Merge branch 'main' into main

This commit is contained in:
Timothy Jaeryang Baek authored and GitHub committed 2024-01-25 00:13:12 -08:00
commit fa5918ad13
8 files changed
+54 -26

No files matched your search

+12 -6
View File
@@ -121,13 +121,19 @@
error: ''
};
files = [...files, doc];
const res = await uploadDocToVectorDB(localStorage.token, '', file);
try {
files = [...files, doc];
const res = await uploadDocToVectorDB(localStorage.token, '', file);
if (res) {
doc.upload_status = true;
doc.collection_name = res.collection_name;
files = files;
if (res) {
doc.upload_status = true;
doc.collection_name = res.collection_name;
files = files;
}
} catch (e) {
// Remove the failed doc from the files array
files = files.filter((f) => f.name !== file.name);
toast.error(e);
}
};
+2 -1
View File
@@ -321,8 +321,9 @@
return true;
} else {
let title = chat.title.toLowerCase();
const query = search.toLowerCase();
if (title.includes(search)) {
if (title.includes(query)) {
return true;
} else {
return false;
+1
View File
@@ -12,6 +12,7 @@ export const WEB_UI_VERSION = 'v1.0.0-alpha-static';
export const REQUIRED_OLLAMA_VERSION = '0.1.16';
export const SUPPORTED_FILE_TYPE = [
'application/epub+zip',
'application/pdf',
'text/plain',
'text/csv',