From b6da4baa979ac853afca252e1fe240e31153597b Mon Sep 17 00:00:00 2001
From: Clivia <132346501+Yanyutin753@users.noreply.github.com>
Date: Fri, 2 Aug 2024 21:36:17 +0800
Subject: [PATCH 01/12] =?UTF-8?q?=F0=9F=92=84=20Limit=20the=20size=20and?=
=?UTF-8?q?=20number=20of=20uploaded=20files?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
💄 Limit the size and number of uploaded files
---
backend/apps/rag/main.py | 17 +++
backend/config.py | 12 ++
src/lib/apis/rag/index.ts | 2 +
.../admin/Settings/Documents.svelte | 37 +++++
src/lib/components/chat/MessageInput.svelte | 136 ++++++++++++------
src/lib/components/workspace/Documents.svelte | 35 +++--
src/lib/i18n/locales/ar-BH/translation.json | 3 +
src/lib/i18n/locales/bg-BG/translation.json | 3 +
src/lib/i18n/locales/bn-BD/translation.json | 3 +
src/lib/i18n/locales/ca-ES/translation.json | 2 +
src/lib/i18n/locales/ceb-PH/translation.json | 3 +
src/lib/i18n/locales/de-DE/translation.json | 3 +
src/lib/i18n/locales/dg-DG/translation.json | 3 +
src/lib/i18n/locales/en-GB/translation.json | 3 +
src/lib/i18n/locales/en-US/translation.json | 3 +
src/lib/i18n/locales/es-ES/translation.json | 3 +
src/lib/i18n/locales/fa-IR/translation.json | 3 +
src/lib/i18n/locales/fi-FI/translation.json | 3 +
src/lib/i18n/locales/fr-CA/translation.json | 3 +
src/lib/i18n/locales/fr-FR/translation.json | 2 +
src/lib/i18n/locales/he-IL/translation.json | 3 +
src/lib/i18n/locales/hi-IN/translation.json | 3 +
src/lib/i18n/locales/hr-HR/translation.json | 3 +
src/lib/i18n/locales/id-ID/translation.json | 3 +
src/lib/i18n/locales/it-IT/translation.json | 3 +
src/lib/i18n/locales/ja-JP/translation.json | 3 +
src/lib/i18n/locales/ka-GE/translation.json | 3 +
src/lib/i18n/locales/ko-KR/translation.json | 3 +
src/lib/i18n/locales/nb-NO/translation.json | 3 +
src/lib/i18n/locales/nl-NL/translation.json | 3 +
src/lib/i18n/locales/pa-IN/translation.json | 3 +
src/lib/i18n/locales/pl-PL/translation.json | 3 +
src/lib/i18n/locales/pt-BR/translation.json | 3 +
src/lib/i18n/locales/pt-PT/translation.json | 3 +
src/lib/i18n/locales/sr-RS/translation.json | 3 +
src/lib/i18n/locales/sv-SE/translation.json | 3 +
src/lib/i18n/locales/th-TH/translation.json | 3 +
src/lib/i18n/locales/tk-TM/transaltion.json | 2 +
src/lib/i18n/locales/tk-TW/translation.json | 3 +
src/lib/i18n/locales/tr-TR/translation.json | 3 +
src/lib/i18n/locales/uk-UA/translation.json | 3 +
src/lib/i18n/locales/vi-VN/translation.json | 3 +
src/lib/i18n/locales/zh-CN/translation.json | 3 +
43 files changed, 298 insertions(+), 49 deletions(-)
diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py
index 7b2fbc6794..3964832456 100644
--- a/backend/apps/rag/main.py
+++ b/backend/apps/rag/main.py
@@ -95,6 +95,8 @@ from config import (
TIKA_SERVER_URL,
RAG_TOP_K,
RAG_RELEVANCE_THRESHOLD,
+ RAG_MAX_FILE_SIZE,
+ RAG_MAX_FILE_COUNT,
RAG_EMBEDDING_ENGINE,
RAG_EMBEDDING_MODEL,
RAG_EMBEDDING_MODEL_AUTO_UPDATE,
@@ -143,6 +145,8 @@ app.state.config = AppConfig()
app.state.config.TOP_K = RAG_TOP_K
app.state.config.RELEVANCE_THRESHOLD = RAG_RELEVANCE_THRESHOLD
+app.state.config.MAX_FILE_SIZE = RAG_MAX_FILE_SIZE
+app.state.config.MAX_FILE_COUNT = RAG_MAX_FILE_COUNT
app.state.config.ENABLE_RAG_HYBRID_SEARCH = ENABLE_RAG_HYBRID_SEARCH
app.state.config.ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION = (
@@ -567,6 +571,8 @@ async def get_query_settings(user=Depends(get_admin_user)):
"template": app.state.config.RAG_TEMPLATE,
"k": app.state.config.TOP_K,
"r": app.state.config.RELEVANCE_THRESHOLD,
+ "max_file_size": app.state.config.MAX_FILE_SIZE,
+ "max_file_count": app.state.config.MAX_FILE_COUNT,
"hybrid": app.state.config.ENABLE_RAG_HYBRID_SEARCH,
}
@@ -574,6 +580,8 @@ async def get_query_settings(user=Depends(get_admin_user)):
class QuerySettingsForm(BaseModel):
k: Optional[int] = None
r: Optional[float] = None
+ max_file_size: Optional[int] = None
+ max_file_count: Optional[int] = None
template: Optional[str] = None
hybrid: Optional[bool] = None
@@ -590,11 +598,20 @@ async def update_query_settings(
app.state.config.ENABLE_RAG_HYBRID_SEARCH = (
form_data.hybrid if form_data.hybrid else False
)
+ app.state.config.MAX_FILE_SIZE = (
+ form_data.max_file_size if form_data.max_file_size else 10
+ )
+ app.state.config.MAX_FILE_COUNT = (
+ form_data.max_file_count if form_data.max_file_count else 5
+ )
+
return {
"status": True,
"template": app.state.config.RAG_TEMPLATE,
"k": app.state.config.TOP_K,
"r": app.state.config.RELEVANCE_THRESHOLD,
+ "max_file_size": app.state.config.MAX_FILE_SIZE,
+ "max_file_count": app.state.config.MAX_FILE_COUNT,
"hybrid": app.state.config.ENABLE_RAG_HYBRID_SEARCH,
}
diff --git a/backend/config.py b/backend/config.py
index 5cf8ba21ae..a4d5d44647 100644
--- a/backend/config.py
+++ b/backend/config.py
@@ -1005,6 +1005,18 @@ ENABLE_RAG_HYBRID_SEARCH = PersistentConfig(
os.environ.get("ENABLE_RAG_HYBRID_SEARCH", "").lower() == "true",
)
+RAG_MAX_FILE_COUNT = PersistentConfig(
+ "RAG_MAX_FILE_COUNT",
+ "rag.max_file_count",
+ int(os.environ.get("RAG_MAX_FILE_COUNT", "5")),
+)
+
+RAG_MAX_FILE_SIZE = PersistentConfig(
+ "RAG_MAX_FILE_SIZE",
+ "rag.max_file_size",
+ int(os.environ.get("RAG_MAX_FILE_SIZE", "10")),
+)
+
ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION = PersistentConfig(
"ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION",
"rag.enable_web_loader_ssl_verification",
diff --git a/src/lib/apis/rag/index.ts b/src/lib/apis/rag/index.ts
index 5c0a47b357..66e9af93ef 100644
--- a/src/lib/apis/rag/index.ts
+++ b/src/lib/apis/rag/index.ts
@@ -137,6 +137,8 @@ export const getQuerySettings = async (token: string) => {
type QuerySettings = {
k: number | null;
r: number | null;
+ max_file_size: number | null;
+ max_file_count: number | null;
template: string | null;
};
diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte
index bac84902f9..57ddffcb11 100644
--- a/src/lib/components/admin/Settings/Documents.svelte
+++ b/src/lib/components/admin/Settings/Documents.svelte
@@ -53,6 +53,8 @@
template: '',
r: 0.0,
k: 4,
+ max_file_size: 10,
+ max_file_count: 5,
hybrid: false
};
@@ -386,6 +388,41 @@
{/if}
+
{$i18n.t('Hybrid Search')}
diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte
index 25b935c8ef..b166c47193 100644
--- a/src/lib/components/chat/MessageInput.svelte
+++ b/src/lib/components/chat/MessageInput.svelte
@@ -15,8 +15,16 @@
user as _user
} from '$lib/stores';
import { blobToFile, findWordIndices } from '$lib/utils';
- import { processDocToVectorDB } from '$lib/apis/rag';
import { transcribeAudio } from '$lib/apis/audio';
+
+ import {
+ getQuerySettings,
+ processDocToVectorDB,
+ uploadDocToVectorDB,
+ uploadWebToVectorDB,
+ uploadYoutubeTranscriptionToVectorDB
+ } from '$lib/apis/rag';
+
import { uploadFile } from '$lib/apis/files';
import {
SUPPORTED_FILE_TYPE,
@@ -54,6 +62,7 @@
let commandsElement;
let inputFiles;
+ let querySettings;
let dragged = false;
let user = null;
@@ -169,7 +178,67 @@
}
};
+ const processFileCountLimit = async (querySettings, inputFiles) => {
+ const maxFiles = querySettings.max_file_count;
+ const currentFilesCount = files.length;
+ const inputFilesCount = inputFiles.length;
+ const totalFilesCount = currentFilesCount + inputFilesCount;
+
+ if (currentFilesCount >= maxFiles || totalFilesCount > maxFiles) {
+ toast.error(
+ $i18n.t('File count exceeds the limit of {{size}}', {
+ count: maxFiles
+ })
+ );
+ if (currentFilesCount >= maxFiles) {
+ return [false, null];
+ }
+ if (totalFilesCount > maxFiles) {
+ inputFiles = inputFiles.slice(0, maxFiles - currentFilesCount);
+ }
+ }
+ return [true, inputFiles];
+ };
+
+ const processFileSizeLimit = async (querySettings, file) => {
+ if (file.size <= querySettings.max_file_size * 1024 * 1024) {
+ if (['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(file['type'])) {
+ if (visionCapableModels.length === 0) {
+ toast.error($i18n.t('Selected model(s) do not support image inputs'));
+ return;
+ }
+ let reader = new FileReader();
+ reader.onload = (event) => {
+ files = [
+ ...files,
+ {
+ type: 'image',
+ url: `${event.target.result}`
+ }
+ ];
+ };
+ reader.readAsDataURL(file);
+ } else {
+ uploadFileHandler(file);
+ }
+ } else {
+ toast.error(
+ $i18n.t('File size exceeds the limit of {{size}}MB', {
+ size: querySettings.max_file_size
+ })
+ );
+ }
+ };
+
onMount(() => {
+ const initializeSettings = async () => {
+ try {
+ querySettings = await getQuerySettings(localStorage.token);
+ } catch (error) {
+ console.error('Error fetching query settings:', error);
+ }
+ };
+ initializeSettings();
window.setTimeout(() => chatTextAreaElement?.focus(), 0);
const dropZone = document.querySelector('body');
@@ -198,27 +267,19 @@
const inputFiles = Array.from(e.dataTransfer?.files);
if (inputFiles && inputFiles.length > 0) {
- inputFiles.forEach((file) => {
+ console.log(inputFiles);
+ const [canProcess, filesToProcess] = await processFileCountLimit(
+ querySettings,
+ inputFiles
+ );
+ if (!canProcess) {
+ dragged = false;
+ return;
+ }
+ console.log(filesToProcess);
+ filesToProcess.forEach((file) => {
console.log(file, file.name.split('.').at(-1));
- if (['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(file['type'])) {
- if (visionCapableModels.length === 0) {
- toast.error($i18n.t('Selected model(s) do not support image inputs'));
- return;
- }
- let reader = new FileReader();
- reader.onload = (event) => {
- files = [
- ...files,
- {
- type: 'image',
- url: `${event.target.result}`
- }
- ];
- };
- reader.readAsDataURL(file);
- } else {
- uploadFileHandler(file);
- }
+ processFileSizeLimit(querySettings, file);
});
} else {
toast.error($i18n.t(`File not found.`));
@@ -341,26 +402,19 @@
on:change={async () => {
if (inputFiles && inputFiles.length > 0) {
const _inputFiles = Array.from(inputFiles);
- _inputFiles.forEach((file) => {
- if (['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(file['type'])) {
- if (visionCapableModels.length === 0) {
- toast.error($i18n.t('Selected model(s) do not support image inputs'));
- return;
- }
- let reader = new FileReader();
- reader.onload = (event) => {
- files = [
- ...files,
- {
- type: 'image',
- url: `${event.target.result}`
- }
- ];
- };
- reader.readAsDataURL(file);
- } else {
- uploadFileHandler(file);
- }
+ console.log(_inputFiles);
+ const [canProcess, filesToProcess] = await processFileCountLimit(
+ querySettings,
+ _inputFiles
+ );
+ if (!canProcess) {
+ filesInputElement.value = '';
+ return;
+ }
+ console.log(filesToProcess);
+ filesToProcess.forEach((file) => {
+ console.log(file, file.name.split('.').at(-1));
+ processFileSizeLimit(querySettings, file);
});
} else {
toast.error($i18n.t(`File not found.`));
diff --git a/src/lib/components/workspace/Documents.svelte b/src/lib/components/workspace/Documents.svelte
index 726a82d591..d2ea10dd20 100644
--- a/src/lib/components/workspace/Documents.svelte
+++ b/src/lib/components/workspace/Documents.svelte
@@ -8,7 +8,7 @@
import { createNewDoc, deleteDocByName, getDocs } from '$lib/apis/documents';
import { SUPPORTED_FILE_TYPE, SUPPORTED_FILE_EXTENSIONS } from '$lib/constants';
- import { processDocToVectorDB, uploadDocToVectorDB } from '$lib/apis/rag';
+ import { getQuerySettings, processDocToVectorDB, uploadDocToVectorDB } from '$lib/apis/rag';
import { blobToFile, transformFileName } from '$lib/utils';
import Checkbox from '$lib/components/common/Checkbox.svelte';
@@ -24,6 +24,7 @@
let importFiles = '';
let inputFiles = '';
+ let querySettings;
let query = '';
let documentsImportInputElement: HTMLInputElement;
let tags = [];
@@ -98,7 +99,17 @@
}
};
+ const initializeSettings = async () => {
+ try {
+ querySettings = await getQuerySettings(localStorage.token);
+ } catch (error) {
+ console.error('Error fetching query settings:', error);
+ }
+ };
+
onMount(() => {
+ initializeSettings();
+
documents.subscribe((docs) => {
tags = docs.reduce((a, e, i, arr) => {
return [...new Set([...a, ...(e?.content?.tags ?? []).map((tag) => tag.name)])];
@@ -136,16 +147,24 @@
if (inputFiles && inputFiles.length > 0) {
for (const file of inputFiles) {
console.log(file, file.name.split('.').at(-1));
- if (
- SUPPORTED_FILE_TYPE.includes(file['type']) ||
- SUPPORTED_FILE_EXTENSIONS.includes(file.name.split('.').at(-1))
- ) {
- uploadDoc(file);
+ if (file.size <= querySettings.max_file_size * 1024 * 1024) {
+ if (
+ SUPPORTED_FILE_TYPE.includes(file['type']) ||
+ SUPPORTED_FILE_EXTENSIONS.includes(file.name.split('.').at(-1))
+ ) {
+ uploadDoc(file);
+ } else {
+ toast.error(
+ `Unknown File Type '${file['type']}', but accepting and treating as plain text`
+ );
+ uploadDoc(file);
+ }
} else {
toast.error(
- `Unknown File Type '${file['type']}', but accepting and treating as plain text`
+ $i18n.t('File size exceeds the limit of {{size}}MB', {
+ size: querySettings.max_file_size
+ })
);
- uploadDoc(file);
}
}
} else {
diff --git a/src/lib/i18n/locales/ar-BH/translation.json b/src/lib/i18n/locales/ar-BH/translation.json
index 99911feef5..47c75d09a4 100644
--- a/src/lib/i18n/locales/ar-BH/translation.json
+++ b/src/lib/i18n/locales/ar-BH/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "وضع الملف",
"File not found.": "لم يتم العثور على الملف.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Ollama إدارة موديلات ",
"Manage Pipelines": "إدارة خطوط الأنابيب",
"March": "مارس",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "ماكس توكنز (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "يمكن تنزيل 3 نماذج كحد أقصى في وقت واحد. الرجاء معاودة المحاولة في وقت لاحق.",
"May": "مايو",
diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json
index 95e5a99329..c5e07658e7 100644
--- a/src/lib/i18n/locales/bg-BG/translation.json
+++ b/src/lib/i18n/locales/bg-BG/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Файл Мод",
"File not found.": "Файл не е намерен.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Управление на Ollama Моделите",
"Manage Pipelines": "Управление на тръбопроводи",
"March": "Март",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Макс токени (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Максимум 3 модели могат да бъдат сваляни едновременно. Моля, опитайте отново по-късно.",
"May": "Май",
diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json
index ff1646bd52..d142df6400 100644
--- a/src/lib/i18n/locales/bn-BD/translation.json
+++ b/src/lib/i18n/locales/bn-BD/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "ফাইল মোড",
"File not found.": "ফাইল পাওয়া যায়নি",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Ollama মডেলসূহ ব্যবস্থাপনা করুন",
"Manage Pipelines": "পাইপলাইন পরিচালনা করুন",
"March": "মার্চ",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "সর্বোচ্চ টোকেন (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "একসঙ্গে সর্বোচ্চ তিনটি মডেল ডাউনলোড করা যায়। দয়া করে পরে আবার চেষ্টা করুন।",
"May": "মে",
diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json
index 1bb5d41677..b3c3f6494f 100644
--- a/src/lib/i18n/locales/ca-ES/translation.json
+++ b/src/lib/i18n/locales/ca-ES/translation.json
@@ -374,6 +374,8 @@
"Manage Ollama Models": "Gestionar els models Ollama",
"Manage Pipelines": "Gestionar les Pipelines",
"March": "Març",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Nombre màxim de Tokens (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Es poden descarregar un màxim de 3 models simultàniament. Si us plau, prova-ho més tard.",
"May": "Maig",
diff --git a/src/lib/i18n/locales/ceb-PH/translation.json b/src/lib/i18n/locales/ceb-PH/translation.json
index d5429bfcb3..4be1767244 100644
--- a/src/lib/i18n/locales/ceb-PH/translation.json
+++ b/src/lib/i18n/locales/ceb-PH/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "File mode",
"File not found.": "Wala makit-an ang file.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Pagdumala sa mga modelo sa Ollama",
"Manage Pipelines": "",
"March": "",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Ang labing taas nga 3 nga mga disenyo mahimong ma-download nga dungan. ",
"May": "",
diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json
index 3c8816f60a..01490d9807 100644
--- a/src/lib/i18n/locales/de-DE/translation.json
+++ b/src/lib/i18n/locales/de-DE/translation.json
@@ -285,6 +285,7 @@
"File": "Datei",
"File Mode": "Datei-Modus",
"File not found.": "Datei nicht gefunden.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "Filter ist jetzt global deaktiviert",
"Filter is now globally enabled": "Filter ist jetzt global aktiviert",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Ollama-Modelle verwalten",
"Manage Pipelines": "Pipelines verwalten",
"March": "März",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Maximale Tokenanzahl (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Es können maximal 3 Modelle gleichzeitig heruntergeladen werden. Bitte versuchen Sie es später erneut.",
"May": "Mai",
diff --git a/src/lib/i18n/locales/dg-DG/translation.json b/src/lib/i18n/locales/dg-DG/translation.json
index 2cc3bffbc8..c27f4452b4 100644
--- a/src/lib/i18n/locales/dg-DG/translation.json
+++ b/src/lib/i18n/locales/dg-DG/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Bark Mode",
"File not found.": "Bark not found.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Manage Ollama Wowdels",
"Manage Pipelines": "",
"March": "",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maximum of 3 models can be downloaded simultaneously. Please try again later.",
"May": "",
diff --git a/src/lib/i18n/locales/en-GB/translation.json b/src/lib/i18n/locales/en-GB/translation.json
index 3080321840..bd38f5f6b9 100644
--- a/src/lib/i18n/locales/en-GB/translation.json
+++ b/src/lib/i18n/locales/en-GB/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "",
"File not found.": "",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "",
"Manage Pipelines": "",
"March": "",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "",
"May": "",
diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json
index 3080321840..bd38f5f6b9 100644
--- a/src/lib/i18n/locales/en-US/translation.json
+++ b/src/lib/i18n/locales/en-US/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "",
"File not found.": "",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "",
"Manage Pipelines": "",
"March": "",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "",
"May": "",
diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json
index f29e3fa10d..24ed299431 100644
--- a/src/lib/i18n/locales/es-ES/translation.json
+++ b/src/lib/i18n/locales/es-ES/translation.json
@@ -285,6 +285,7 @@
"File": "Archivo",
"File Mode": "Modo de archivo",
"File not found.": "Archivo no encontrado.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Administrar Modelos Ollama",
"Manage Pipelines": "Administrar Pipelines",
"March": "Marzo",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Máximo de fichas (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Se pueden descargar un máximo de 3 modelos simultáneamente. Por favor, inténtelo de nuevo más tarde.",
"May": "Mayo",
diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json
index 8b6b96768f..8b156ff176 100644
--- a/src/lib/i18n/locales/fa-IR/translation.json
+++ b/src/lib/i18n/locales/fa-IR/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "حالت فایل",
"File not found.": "فایل یافت نشد.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "مدیریت مدل\u200cهای اولاما",
"Manage Pipelines": "مدیریت خطوط لوله",
"March": "مارچ",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "توکنهای بیشینه (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "حداکثر 3 مدل را می توان به طور همزمان دانلود کرد. لطفاً بعداً دوباره امتحان کنید.",
"May": "ماهی",
diff --git a/src/lib/i18n/locales/fi-FI/translation.json b/src/lib/i18n/locales/fi-FI/translation.json
index 5736e892be..c48000126c 100644
--- a/src/lib/i18n/locales/fi-FI/translation.json
+++ b/src/lib/i18n/locales/fi-FI/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Tiedostotila",
"File not found.": "Tiedostoa ei löytynyt.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Hallitse Ollama-malleja",
"Manage Pipelines": "Hallitse putkia",
"March": "maaliskuu",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Tokenien enimmäismäärä (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Enintään 3 mallia voidaan ladata samanaikaisesti. Yritä myöhemmin uudelleen.",
"May": "toukokuu",
diff --git a/src/lib/i18n/locales/fr-CA/translation.json b/src/lib/i18n/locales/fr-CA/translation.json
index 0f050fb072..bc85131c6a 100644
--- a/src/lib/i18n/locales/fr-CA/translation.json
+++ b/src/lib/i18n/locales/fr-CA/translation.json
@@ -285,6 +285,7 @@
"File": "Fichier",
"File Mode": "Mode fichier",
"File not found.": "Fichier introuvable.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "Le filtre est maintenant désactivé globalement",
"Filter is now globally enabled": "Le filtre est désormais activé globalement",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Gérer les modèles Ollama",
"Manage Pipelines": "Gérer les pipelines",
"March": "Mars",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Tokens maximaux (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Un maximum de 3 modèles peut être téléchargé en même temps. Veuillez réessayer ultérieurement.",
"May": "Mai",
diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json
index 0e8ca9d5c9..04db7f054f 100644
--- a/src/lib/i18n/locales/fr-FR/translation.json
+++ b/src/lib/i18n/locales/fr-FR/translation.json
@@ -374,6 +374,8 @@
"Manage Ollama Models": "Gérer les modèles Ollama",
"Manage Pipelines": "Gérer les pipelines",
"March": "Mars",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Tokens maximaux (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Un maximum de 3 modèles peut être téléchargé en même temps. Veuillez réessayer ultérieurement.",
"May": "Mai",
diff --git a/src/lib/i18n/locales/he-IL/translation.json b/src/lib/i18n/locales/he-IL/translation.json
index 6b25a8d778..98ac9b3ef4 100644
--- a/src/lib/i18n/locales/he-IL/translation.json
+++ b/src/lib/i18n/locales/he-IL/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "מצב קובץ",
"File not found.": "הקובץ לא נמצא.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "נהל מודלים של Ollama",
"Manage Pipelines": "ניהול צינורות",
"March": "מרץ",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "מקסימום אסימונים (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "ניתן להוריד מקסימום 3 מודלים בו זמנית. אנא נסה שוב מאוחר יותר.",
"May": "מאי",
diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json
index 4720e3ccf2..7ee62f561c 100644
--- a/src/lib/i18n/locales/hi-IN/translation.json
+++ b/src/lib/i18n/locales/hi-IN/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "फ़ाइल मोड",
"File not found.": "फ़ाइल प्राप्त नहीं हुई।",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Ollama मॉडल प्रबंधित करें",
"Manage Pipelines": "पाइपलाइनों का प्रबंधन करें",
"March": "मार्च",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "अधिकतम टोकन (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "अधिकतम 3 मॉडल एक साथ डाउनलोड किये जा सकते हैं। कृपया बाद में पुन: प्रयास करें।",
"May": "मेई",
diff --git a/src/lib/i18n/locales/hr-HR/translation.json b/src/lib/i18n/locales/hr-HR/translation.json
index eaff8e59d9..ac46b3b9fc 100644
--- a/src/lib/i18n/locales/hr-HR/translation.json
+++ b/src/lib/i18n/locales/hr-HR/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Način datoteke",
"File not found.": "Datoteka nije pronađena.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Upravljanje Ollama modelima",
"Manage Pipelines": "Upravljanje cjevovodima",
"March": "Ožujak",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Maksimalan broj tokena (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maksimalno 3 modela se mogu preuzeti istovremeno. Pokušajte ponovo kasnije.",
"May": "Svibanj",
diff --git a/src/lib/i18n/locales/id-ID/translation.json b/src/lib/i18n/locales/id-ID/translation.json
index 7f5b50417e..226e9366ef 100644
--- a/src/lib/i18n/locales/id-ID/translation.json
+++ b/src/lib/i18n/locales/id-ID/translation.json
@@ -285,6 +285,7 @@
"File": "Berkas",
"File Mode": "Mode File",
"File not found.": "File tidak ditemukan.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "Filter sekarang dinonaktifkan secara global",
"Filter is now globally enabled": "Filter sekarang diaktifkan secara global",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Mengelola Model Ollama",
"Manage Pipelines": "Mengelola Saluran Pipa",
"March": "Maret",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Token Maksimal (num_prediksi)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maksimal 3 model dapat diunduh secara bersamaan. Silakan coba lagi nanti.",
"May": "Mei",
diff --git a/src/lib/i18n/locales/it-IT/translation.json b/src/lib/i18n/locales/it-IT/translation.json
index aa7eacf58f..c143d8e276 100644
--- a/src/lib/i18n/locales/it-IT/translation.json
+++ b/src/lib/i18n/locales/it-IT/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Modalità file",
"File not found.": "File non trovato.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Gestisci modelli Ollama",
"Manage Pipelines": "Gestire le pipeline",
"March": "Marzo",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Numero massimo di gettoni (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "È possibile scaricare un massimo di 3 modelli contemporaneamente. Riprova più tardi.",
"May": "Maggio",
diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json
index 5bebdb7f4e..2cd19cee53 100644
--- a/src/lib/i18n/locales/ja-JP/translation.json
+++ b/src/lib/i18n/locales/ja-JP/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "ファイルモード",
"File not found.": "ファイルが見つかりません。",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Ollama モデルを管理",
"Manage Pipelines": "パイプラインの管理",
"March": "3月",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "最大トークン数 (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "同時にダウンロードできるモデルは最大 3 つです。後でもう一度お試しください。",
"May": "5月",
diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json
index 1e46434068..22ff73af5b 100644
--- a/src/lib/i18n/locales/ka-GE/translation.json
+++ b/src/lib/i18n/locales/ka-GE/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "ფაილური რეჟიმი",
"File not found.": "ფაილი ვერ მოიძებნა",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Ollama მოდელების მართვა",
"Manage Pipelines": "მილსადენების მართვა",
"March": "მარტივი",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "მაქს ტოკენსი (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "მაქსიმუმ 3 მოდელის ჩამოტვირთვა შესაძლებელია ერთდროულად. Გთხოვთ სცადოთ მოგვიანებით.",
"May": "მაი",
diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json
index 58d7dcdc7e..39223a479f 100644
--- a/src/lib/i18n/locales/ko-KR/translation.json
+++ b/src/lib/i18n/locales/ko-KR/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "파일 모드",
"File not found.": "파일을 찾을 수 없습니다.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Ollama 모델 관리",
"Manage Pipelines": "파이프라인 관리",
"March": "3월",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "최대 토큰(num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "최대 3개의 모델을 동시에 다운로드할 수 있습니다. 나중에 다시 시도하세요.",
"May": "5월",
diff --git a/src/lib/i18n/locales/nb-NO/translation.json b/src/lib/i18n/locales/nb-NO/translation.json
index 05e5948acf..3e53f73634 100644
--- a/src/lib/i18n/locales/nb-NO/translation.json
+++ b/src/lib/i18n/locales/nb-NO/translation.json
@@ -285,6 +285,7 @@
"File": "Fil",
"File Mode": "Filmodus",
"File not found.": "Fil ikke funnet.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Filer",
"Filter is now globally disabled": "Filteret er nå deaktivert på systemnivå",
"Filter is now globally enabled": "Filteret er nå aktivert på systemnivå",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Administrer Ollama-modeller",
"Manage Pipelines": "Administrer pipelines",
"March": "mars",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Maks antall tokens (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maksimalt 3 modeller kan lastes ned samtidig. Vennligst prøv igjen senere.",
"May": "mai",
diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json
index f86c44331e..eb44c4493b 100644
--- a/src/lib/i18n/locales/nl-NL/translation.json
+++ b/src/lib/i18n/locales/nl-NL/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Bestandsmodus",
"File not found.": "Bestand niet gevonden.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Beheer Ollama Modellen",
"Manage Pipelines": "Pijplijnen beheren",
"March": "Maart",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Max Tokens (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maximaal 3 modellen kunnen tegelijkertijd worden gedownload. Probeer het later opnieuw.",
"May": "Mei",
diff --git a/src/lib/i18n/locales/pa-IN/translation.json b/src/lib/i18n/locales/pa-IN/translation.json
index d78c4e5cc2..e87e88144c 100644
--- a/src/lib/i18n/locales/pa-IN/translation.json
+++ b/src/lib/i18n/locales/pa-IN/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "ਫਾਈਲ ਮੋਡ",
"File not found.": "ਫਾਈਲ ਨਹੀਂ ਮਿਲੀ।",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "ਓਲਾਮਾ ਮਾਡਲਾਂ ਦਾ ਪ੍ਰਬੰਧਨ ਕਰੋ",
"Manage Pipelines": "ਪਾਈਪਲਾਈਨਾਂ ਦਾ ਪ੍ਰਬੰਧਨ ਕਰੋ",
"March": "ਮਾਰਚ",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "ਮੈਕਸ ਟੋਕਨ (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "ਇੱਕ ਸਮੇਂ ਵਿੱਚ ਵੱਧ ਤੋਂ ਵੱਧ 3 ਮਾਡਲ ਡਾਊਨਲੋਡ ਕੀਤੇ ਜਾ ਸਕਦੇ ਹਨ। ਕਿਰਪਾ ਕਰਕੇ ਬਾਅਦ ਵਿੱਚ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।",
"May": "ਮਈ",
diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json
index fcde69c2a5..17f4768ca3 100644
--- a/src/lib/i18n/locales/pl-PL/translation.json
+++ b/src/lib/i18n/locales/pl-PL/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Tryb pliku",
"File not found.": "Plik nie został znaleziony.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Zarządzaj modelami Ollama",
"Manage Pipelines": "Zarządzanie potokami",
"March": "Marzec",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Maksymalna liczba żetonów (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maksymalnie 3 modele można pobierać jednocześnie. Spróbuj ponownie później.",
"May": "Maj",
diff --git a/src/lib/i18n/locales/pt-BR/translation.json b/src/lib/i18n/locales/pt-BR/translation.json
index b891a8df70..8e1e0baeee 100644
--- a/src/lib/i18n/locales/pt-BR/translation.json
+++ b/src/lib/i18n/locales/pt-BR/translation.json
@@ -285,6 +285,7 @@
"File": "Arquivo",
"File Mode": "Modo de Arquivo",
"File not found.": "Arquivo não encontrado.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Arquivos",
"Filter is now globally disabled": "O filtro está agora desativado globalmente",
"Filter is now globally enabled": "O filtro está agora ativado globalmente",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Gerenciar Modelos Ollama",
"Manage Pipelines": "Gerenciar Pipelines",
"March": "Março",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Máximo de Tokens (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Máximo de 3 modelos podem ser baixados simultaneamente. Por favor, tente novamente mais tarde.",
"May": "Maio",
diff --git a/src/lib/i18n/locales/pt-PT/translation.json b/src/lib/i18n/locales/pt-PT/translation.json
index 09b9d8ff21..7b18b2e49d 100644
--- a/src/lib/i18n/locales/pt-PT/translation.json
+++ b/src/lib/i18n/locales/pt-PT/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Modo de Ficheiro",
"File not found.": "Ficheiro não encontrado.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Gerir Modelos Ollama",
"Manage Pipelines": "Gerir pipelines",
"March": "Março",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Máx Tokens (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "O máximo de 3 modelos podem ser descarregados simultaneamente. Tente novamente mais tarde.",
"May": "Maio",
diff --git a/src/lib/i18n/locales/sr-RS/translation.json b/src/lib/i18n/locales/sr-RS/translation.json
index 5b24515ba0..9bc1d7c790 100644
--- a/src/lib/i18n/locales/sr-RS/translation.json
+++ b/src/lib/i18n/locales/sr-RS/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Режим датотеке",
"File not found.": "Датотека није пронађена.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Управљај Ollama моделима",
"Manage Pipelines": "Управљање цевоводима",
"March": "Март",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Маx Токенс (нум_предицт)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Највише 3 модела могу бити преузета истовремено. Покушајте поново касније.",
"May": "Мај",
diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json
index 7726ef711c..84d5a8c8c1 100644
--- a/src/lib/i18n/locales/sv-SE/translation.json
+++ b/src/lib/i18n/locales/sv-SE/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "Fil-läge",
"File not found.": "Fil hittades inte.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Hantera Ollama-modeller",
"Manage Pipelines": "Hantera rörledningar",
"March": "mars",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Maximalt antal tokens (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Högst 3 modeller kan laddas ner samtidigt. Vänligen försök igen senare.",
"May": "maj",
diff --git a/src/lib/i18n/locales/th-TH/translation.json b/src/lib/i18n/locales/th-TH/translation.json
index 1851649abd..7dc1c2e955 100644
--- a/src/lib/i18n/locales/th-TH/translation.json
+++ b/src/lib/i18n/locales/th-TH/translation.json
@@ -285,6 +285,7 @@
"File": "ไฟล์",
"File Mode": "โหมดไฟล์",
"File not found.": "ไม่พบไฟล์",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "ไฟล์",
"Filter is now globally disabled": "การกรองถูกปิดใช้งานทั่วโลกแล้ว",
"Filter is now globally enabled": "การกรองถูกเปิดใช้งานทั่วโลกแล้ว",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "จัดการโมเดล Ollama",
"Manage Pipelines": "จัดการไปป์ไลน์",
"March": "มีนาคม",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "โทเค็นสูงสุด (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "สามารถดาวน์โหลดโมเดลได้สูงสุด 3 โมเดลในเวลาเดียวกัน โปรดลองอีกครั้งในภายหลัง",
"May": "พฤษภาคม",
diff --git a/src/lib/i18n/locales/tk-TM/transaltion.json b/src/lib/i18n/locales/tk-TM/transaltion.json
index ae2fd7ba2f..3a97865c3b 100644
--- a/src/lib/i18n/locales/tk-TM/transaltion.json
+++ b/src/lib/i18n/locales/tk-TM/transaltion.json
@@ -324,6 +324,8 @@
"Management": "Dolandyryş",
"Manual Input": "El bilen Girdi",
"March": "Mart",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Mark as Read": "Okalan hökmünde belläň",
"Match": "Gab",
"May": "Maý",
diff --git a/src/lib/i18n/locales/tk-TW/translation.json b/src/lib/i18n/locales/tk-TW/translation.json
index 3080321840..bd38f5f6b9 100644
--- a/src/lib/i18n/locales/tk-TW/translation.json
+++ b/src/lib/i18n/locales/tk-TW/translation.json
@@ -285,6 +285,7 @@
"File": "",
"File Mode": "",
"File not found.": "",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "",
"Filter is now globally enabled": "",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "",
"Manage Pipelines": "",
"March": "",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "",
"May": "",
diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json
index c3e5264bc3..35c0c03a2c 100644
--- a/src/lib/i18n/locales/tr-TR/translation.json
+++ b/src/lib/i18n/locales/tr-TR/translation.json
@@ -285,6 +285,7 @@
"File": "Dosya",
"File Mode": "Dosya Modu",
"File not found.": "Dosya bulunamadı.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "",
"Filter is now globally disabled": "Filtre artık global olarak devre dışı",
"Filter is now globally enabled": "Filtre artık global olarak devrede",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Ollama Modellerini Yönet",
"Manage Pipelines": "Pipelineları Yönet",
"March": "Mart",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Maksimum Token (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Aynı anda en fazla 3 model indirilebilir. Lütfen daha sonra tekrar deneyin.",
"May": "Mayıs",
diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json
index cd87afbe4a..483a84e835 100644
--- a/src/lib/i18n/locales/uk-UA/translation.json
+++ b/src/lib/i18n/locales/uk-UA/translation.json
@@ -285,6 +285,7 @@
"File": "Файл",
"File Mode": "Файловий режим",
"File not found.": "Файл не знайдено.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Файли",
"Filter is now globally disabled": "Фільтр глобально вимкнено",
"Filter is now globally enabled": "Фільтр увімкнено глобально",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Керування моделями Ollama",
"Manage Pipelines": "Керування конвеєрами",
"March": "Березень",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Макс токенів (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Максимум 3 моделі можна завантажити одночасно. Будь ласка, спробуйте пізніше.",
"May": "Травень",
diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json
index 2d32d94460..58f472f4d2 100644
--- a/src/lib/i18n/locales/vi-VN/translation.json
+++ b/src/lib/i18n/locales/vi-VN/translation.json
@@ -285,6 +285,7 @@
"File": "Tệp",
"File Mode": "Chế độ Tệp văn bản",
"File not found.": "Không tìm thấy tệp.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Tệp",
"Filter is now globally disabled": "Bộ lọc hiện đã bị vô hiệu hóa trên toàn hệ thống",
"Filter is now globally enabled": "Bộ lọc hiện được kích hoạt trên toàn hệ thống",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Quản lý mô hình với Ollama",
"Manage Pipelines": "Quản lý Pipelines",
"March": "Tháng 3",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Tokens tối đa (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Tối đa 3 mô hình có thể được tải xuống cùng lúc. Vui lòng thử lại sau.",
"May": "Tháng 5",
diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json
index 2fc4a4065d..0946e83284 100644
--- a/src/lib/i18n/locales/zh-CN/translation.json
+++ b/src/lib/i18n/locales/zh-CN/translation.json
@@ -285,6 +285,7 @@
"File": "文件",
"File Mode": "文件模式",
"File not found.": "文件未找到。",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "文件",
"Filter is now globally disabled": "过滤器已全局禁用",
"Filter is now globally enabled": "过滤器已全局启用",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "管理 Ollama 模型",
"Manage Pipelines": "管理 Pipeline",
"March": "三月",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "最多 Token (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "最多可以同时下载 3 个模型,请稍后重试。",
"May": "五月",
From b01d72ade3de0187d026300a9d2df94533aad2bc Mon Sep 17 00:00:00 2001
From: Clivia <132346501+Yanyutin753@users.noreply.github.com>
Date: Sat, 3 Aug 2024 08:59:08 +0800
Subject: [PATCH 02/12] =?UTF-8?q?=F0=9F=92=84Fix=20format?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
💄Fix format
---
src/lib/components/chat/MessageInput.svelte | 6 +-----
src/lib/i18n/locales/ro-RO/translation.json | 3 +++
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte
index b166c47193..dcbc677ba7 100644
--- a/src/lib/components/chat/MessageInput.svelte
+++ b/src/lib/components/chat/MessageInput.svelte
@@ -185,11 +185,7 @@
const totalFilesCount = currentFilesCount + inputFilesCount;
if (currentFilesCount >= maxFiles || totalFilesCount > maxFiles) {
- toast.error(
- $i18n.t('File count exceeds the limit of {{size}}', {
- count: maxFiles
- })
- );
+ toast.error(`File count exceeds the limit of '${maxFiles}'. Please remove some files.`);
if (currentFilesCount >= maxFiles) {
return [false, null];
}
diff --git a/src/lib/i18n/locales/ro-RO/translation.json b/src/lib/i18n/locales/ro-RO/translation.json
index ebcaf0f695..ef26b42b63 100644
--- a/src/lib/i18n/locales/ro-RO/translation.json
+++ b/src/lib/i18n/locales/ro-RO/translation.json
@@ -285,6 +285,7 @@
"File": "Fișier",
"File Mode": "Mod Fișier",
"File not found.": "Fișierul nu a fost găsit.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Fișiere",
"Filter is now globally disabled": "Filtrul este acum dezactivat global",
"Filter is now globally enabled": "Filtrul este acum activat global",
@@ -374,6 +375,8 @@
"Manage Ollama Models": "Gestionează Modelele Ollama",
"Manage Pipelines": "Gestionează Conductele",
"March": "Martie",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Număr Maxim de Tokeni (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maxim 3 modele pot fi descărcate simultan. Vă rugăm să încercați din nou mai târziu.",
"May": "Mai",
From 775478534ad7b4574cfc56f57d8ef913c9e68a0b Mon Sep 17 00:00:00 2001
From: Clivia <132346501+Yanyutin753@users.noreply.github.com>
Date: Mon, 26 Aug 2024 23:32:37 +0800
Subject: [PATCH 03/12] =?UTF-8?q?=F0=9F=91=80=20Fix=20Common=20users=20can?=
=?UTF-8?q?not=20upload=20files?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
💄Fix format
💄Fix format i18
⭐ Feat paste upload files and make restrictions
⭐ Feat paste upload files and make restrictions
---
backend/apps/rag/main.py | 8 +++
src/lib/apis/rag/index.ts | 27 +++++++
src/lib/components/chat/MessageInput.svelte | 71 ++++++++++---------
src/lib/components/workspace/Documents.svelte | 14 ++--
src/lib/i18n/locales/ar-BH/translation.json | 1 +
src/lib/i18n/locales/bg-BG/translation.json | 1 +
src/lib/i18n/locales/bn-BD/translation.json | 1 +
src/lib/i18n/locales/ca-ES/translation.json | 1 +
src/lib/i18n/locales/ceb-PH/translation.json | 1 +
src/lib/i18n/locales/de-DE/translation.json | 1 +
src/lib/i18n/locales/dg-DG/translation.json | 1 +
src/lib/i18n/locales/en-GB/translation.json | 1 +
src/lib/i18n/locales/en-US/translation.json | 1 +
src/lib/i18n/locales/es-ES/translation.json | 1 +
src/lib/i18n/locales/fa-IR/translation.json | 1 +
src/lib/i18n/locales/fi-FI/translation.json | 1 +
src/lib/i18n/locales/fr-CA/translation.json | 1 +
src/lib/i18n/locales/fr-FR/translation.json | 1 +
src/lib/i18n/locales/he-IL/translation.json | 1 +
src/lib/i18n/locales/hi-IN/translation.json | 1 +
src/lib/i18n/locales/hr-HR/translation.json | 1 +
src/lib/i18n/locales/id-ID/translation.json | 1 +
src/lib/i18n/locales/it-IT/translation.json | 1 +
src/lib/i18n/locales/ja-JP/translation.json | 1 +
src/lib/i18n/locales/ka-GE/translation.json | 1 +
src/lib/i18n/locales/ko-KR/translation.json | 1 +
src/lib/i18n/locales/lt-LT/translation.json | 1 +
src/lib/i18n/locales/nb-NO/translation.json | 1 +
src/lib/i18n/locales/nl-NL/translation.json | 1 +
src/lib/i18n/locales/pa-IN/translation.json | 1 +
src/lib/i18n/locales/pl-PL/translation.json | 1 +
src/lib/i18n/locales/pt-BR/translation.json | 1 +
src/lib/i18n/locales/pt-PT/translation.json | 1 +
src/lib/i18n/locales/ro-RO/translation.json | 1 +
src/lib/i18n/locales/ru-RU/translation.json | 1 +
src/lib/i18n/locales/sr-RS/translation.json | 1 +
src/lib/i18n/locales/sv-SE/translation.json | 1 +
src/lib/i18n/locales/th-TH/translation.json | 1 +
src/lib/i18n/locales/tk-TM/transaltion.json | 1 +
src/lib/i18n/locales/tk-TW/translation.json | 1 +
src/lib/i18n/locales/tr-TR/translation.json | 1 +
src/lib/i18n/locales/uk-UA/translation.json | 1 +
src/lib/i18n/locales/vi-VN/translation.json | 1 +
src/lib/i18n/locales/zh-CN/translation.json | 1 +
src/lib/i18n/locales/zh-TW/translation.json | 1 +
45 files changed, 119 insertions(+), 42 deletions(-)
diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py
index 3964832456..1803ff8d4b 100644
--- a/backend/apps/rag/main.py
+++ b/backend/apps/rag/main.py
@@ -577,6 +577,14 @@ async def get_query_settings(user=Depends(get_admin_user)):
}
+@app.get("/file/limit/settings")
+async def get_query_settings(user=Depends(get_verified_user)):
+ return {
+ "max_file_size": app.state.config.MAX_FILE_SIZE,
+ "max_file_count": app.state.config.MAX_FILE_COUNT,
+ }
+
+
class QuerySettingsForm(BaseModel):
k: Optional[int] = None
r: Optional[float] = None
diff --git a/src/lib/apis/rag/index.ts b/src/lib/apis/rag/index.ts
index 66e9af93ef..153d9ab993 100644
--- a/src/lib/apis/rag/index.ts
+++ b/src/lib/apis/rag/index.ts
@@ -134,6 +134,33 @@ export const getQuerySettings = async (token: string) => {
return res;
};
+export const getFileLimitSettings = async (token: string) => {
+ let error = null;
+
+ const res = await fetch(`${RAG_API_BASE_URL}/file/limit/settings`, {
+ method: 'GET',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: `Bearer ${token}`
+ }
+ })
+ .then(async (res) => {
+ if (!res.ok) throw await res.json();
+ return res.json();
+ })
+ .catch((err) => {
+ console.log(err);
+ error = err.detail;
+ return null;
+ });
+
+ if (error) {
+ throw error;
+ }
+
+ return res;
+};
+
type QuerySettings = {
k: number | null;
r: number | null;
diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte
index dcbc677ba7..7067832876 100644
--- a/src/lib/components/chat/MessageInput.svelte
+++ b/src/lib/components/chat/MessageInput.svelte
@@ -18,11 +18,8 @@
import { transcribeAudio } from '$lib/apis/audio';
import {
- getQuerySettings,
+ getFileLimitSettings,
processDocToVectorDB,
- uploadDocToVectorDB,
- uploadWebToVectorDB,
- uploadYoutubeTranscriptionToVectorDB
} from '$lib/apis/rag';
import { uploadFile } from '$lib/apis/files';
@@ -62,7 +59,7 @@
let commandsElement;
let inputFiles;
- let querySettings;
+ let fileLimitSettings;
let dragged = false;
let user = null;
@@ -196,8 +193,8 @@
return [true, inputFiles];
};
- const processFileSizeLimit = async (querySettings, file) => {
- if (file.size <= querySettings.max_file_size * 1024 * 1024) {
+ const processFileSizeLimit = async (fileLimitSettings, file) => {
+ if (file.size <= fileLimitSettings.max_file_size * 1024 * 1024) {
if (['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(file['type'])) {
if (visionCapableModels.length === 0) {
toast.error($i18n.t('Selected model(s) do not support image inputs'));
@@ -220,21 +217,22 @@
} else {
toast.error(
$i18n.t('File size exceeds the limit of {{size}}MB', {
- size: querySettings.max_file_size
+ size: fileLimitSettings.max_file_size
})
);
}
};
onMount(() => {
- const initializeSettings = async () => {
+ const initFileLimitSettings = async () => {
try {
- querySettings = await getQuerySettings(localStorage.token);
+ fileLimitSettings = await getFileLimitSettings(localStorage.token);
} catch (error) {
console.error('Error fetching query settings:', error);
}
};
- initializeSettings();
+ initFileLimitSettings();
+
window.setTimeout(() => chatTextAreaElement?.focus(), 0);
const dropZone = document.querySelector('body');
@@ -265,7 +263,7 @@
if (inputFiles && inputFiles.length > 0) {
console.log(inputFiles);
const [canProcess, filesToProcess] = await processFileCountLimit(
- querySettings,
+ fileLimitSettings,
inputFiles
);
if (!canProcess) {
@@ -275,7 +273,7 @@
console.log(filesToProcess);
filesToProcess.forEach((file) => {
console.log(file, file.name.split('.').at(-1));
- processFileSizeLimit(querySettings, file);
+ processFileSizeLimit(fileLimitSettings, file);
});
} else {
toast.error($i18n.t(`File not found.`));
@@ -400,7 +398,7 @@
const _inputFiles = Array.from(inputFiles);
console.log(_inputFiles);
const [canProcess, filesToProcess] = await processFileCountLimit(
- querySettings,
+ fileLimitSettings,
_inputFiles
);
if (!canProcess) {
@@ -410,7 +408,7 @@
console.log(filesToProcess);
filesToProcess.forEach((file) => {
console.log(file, file.name.split('.').at(-1));
- processFileSizeLimit(querySettings, file);
+ processFileSizeLimit(fileLimitSettings, file);
});
} else {
toast.error($i18n.t(`File not found.`));
@@ -703,37 +701,40 @@
}
}}
rows="1"
- on:input={(e) => {
+ on:input={async (e) => {
e.target.style.height = '';
e.target.style.height = Math.min(e.target.scrollHeight, 200) + 'px';
user = null;
}}
- on:focus={(e) => {
+ on:focus={async (e) => {
e.target.style.height = '';
e.target.style.height = Math.min(e.target.scrollHeight, 200) + 'px';
}}
- on:paste={(e) => {
+ on:paste={async (e) => {
const clipboardData = e.clipboardData || window.clipboardData;
+ try {
+ if (clipboardData && clipboardData.items) {
+ const inputFiles = Array.from(clipboardData.items)
+ .map((item) => item.getAsFile())
+ .filter((file) => file);
- if (clipboardData && clipboardData.items) {
- for (const item of clipboardData.items) {
- if (item.type.indexOf('image') !== -1) {
- const blob = item.getAsFile();
- const reader = new FileReader();
-
- reader.onload = function (e) {
- files = [
- ...files,
- {
- type: 'image',
- url: `${e.target.result}`
- }
- ];
- };
-
- reader.readAsDataURL(blob);
+ const [canProcess, filesToProcess] = await processFileCountLimit(
+ fileLimitSettings,
+ inputFiles
+ );
+ if (!canProcess) {
+ return;
}
+ filesToProcess.forEach((file) => {
+ console.log(file, file.name.split('.').at(-1));
+ processFileSizeLimit(fileLimitSettings, file);
+ });
+ } else {
+ toast.error($i18n.t(`File not found.`));
}
+ } catch (error) {
+ console.error('Error processing files:', error);
+ toast.error($i18n.t(`An error occurred while processing files.`));
}
}}
/>
diff --git a/src/lib/components/workspace/Documents.svelte b/src/lib/components/workspace/Documents.svelte
index d2ea10dd20..f738967a09 100644
--- a/src/lib/components/workspace/Documents.svelte
+++ b/src/lib/components/workspace/Documents.svelte
@@ -8,7 +8,7 @@
import { createNewDoc, deleteDocByName, getDocs } from '$lib/apis/documents';
import { SUPPORTED_FILE_TYPE, SUPPORTED_FILE_EXTENSIONS } from '$lib/constants';
- import { getQuerySettings, processDocToVectorDB, uploadDocToVectorDB } from '$lib/apis/rag';
+ import { getFileLimitSettings, processDocToVectorDB, uploadDocToVectorDB } from '$lib/apis/rag';
import { blobToFile, transformFileName } from '$lib/utils';
import Checkbox from '$lib/components/common/Checkbox.svelte';
@@ -24,7 +24,7 @@
let importFiles = '';
let inputFiles = '';
- let querySettings;
+ let fileLimitSettings;
let query = '';
let documentsImportInputElement: HTMLInputElement;
let tags = [];
@@ -99,16 +99,16 @@
}
};
- const initializeSettings = async () => {
+ const initFileLimitSettings = async () => {
try {
- querySettings = await getQuerySettings(localStorage.token);
+ fileLimitSettings = await getFileLimitSettings(localStorage.token);
} catch (error) {
console.error('Error fetching query settings:', error);
}
};
onMount(() => {
- initializeSettings();
+ initFileLimitSettings();
documents.subscribe((docs) => {
tags = docs.reduce((a, e, i, arr) => {
@@ -147,7 +147,7 @@
if (inputFiles && inputFiles.length > 0) {
for (const file of inputFiles) {
console.log(file, file.name.split('.').at(-1));
- if (file.size <= querySettings.max_file_size * 1024 * 1024) {
+ if (file.size <= fileLimitSettings.max_file_size * 1024 * 1024) {
if (
SUPPORTED_FILE_TYPE.includes(file['type']) ||
SUPPORTED_FILE_EXTENSIONS.includes(file.name.split('.').at(-1))
@@ -162,7 +162,7 @@
} else {
toast.error(
$i18n.t('File size exceeds the limit of {{size}}MB', {
- size: querySettings.max_file_size
+ size: fileLimitSettings.max_file_size
})
);
}
diff --git a/src/lib/i18n/locales/ar-BH/translation.json b/src/lib/i18n/locales/ar-BH/translation.json
index 47c75d09a4..c418fa5813 100644
--- a/src/lib/i18n/locales/ar-BH/translation.json
+++ b/src/lib/i18n/locales/ar-BH/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "الأحرف الأبجدية الرقمية والواصلات",
"Already have an account?": "هل تملك حساب ؟",
"an assistant": "مساعد",
+ "An error occurred while processing files.": "",
"and": "و",
"and create a new shared link.": "و أنشئ رابط مشترك جديد.",
"API Base URL": "API الرابط الرئيسي",
diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json
index c5e07658e7..258040b100 100644
--- a/src/lib/i18n/locales/bg-BG/translation.json
+++ b/src/lib/i18n/locales/bg-BG/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "алфанумерични знаци и тире",
"Already have an account?": "Вече имате акаунт? ",
"an assistant": "асистент",
+ "An error occurred while processing files.": "",
"and": "и",
"and create a new shared link.": "и създай нов общ линк.",
"API Base URL": "API Базов URL",
diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json
index d142df6400..985fd0e5f8 100644
--- a/src/lib/i18n/locales/bn-BD/translation.json
+++ b/src/lib/i18n/locales/bn-BD/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "ইংরেজি অক্ষর, সংখ্যা এবং হাইফেন",
"Already have an account?": "আগে থেকেই একাউন্ট আছে?",
"an assistant": "একটা এসিস্ট্যান্ট",
+ "An error occurred while processing files.": "",
"and": "এবং",
"and create a new shared link.": "এবং একটি নতুন শেয়ারে লিংক তৈরি করুন.",
"API Base URL": "এপিআই বেজ ইউআরএল",
diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json
index b3c3f6494f..d786761b53 100644
--- a/src/lib/i18n/locales/ca-ES/translation.json
+++ b/src/lib/i18n/locales/ca-ES/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "caràcters alfanumèrics i guions",
"Already have an account?": "Ja tens un compte?",
"an assistant": "un assistent",
+ "An error occurred while processing files.": "",
"and": "i",
"and create a new shared link.": "i crear un nou enllaç compartit.",
"API Base URL": "URL Base de l'API",
diff --git a/src/lib/i18n/locales/ceb-PH/translation.json b/src/lib/i18n/locales/ceb-PH/translation.json
index 4be1767244..c046eeff33 100644
--- a/src/lib/i18n/locales/ceb-PH/translation.json
+++ b/src/lib/i18n/locales/ceb-PH/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "alphanumeric nga mga karakter ug hyphen",
"Already have an account?": "Naa na kay account ?",
"an assistant": "usa ka katabang",
+ "An error occurred while processing files.": "",
"and": "Ug",
"and create a new shared link.": "",
"API Base URL": "API Base URL",
diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json
index 01490d9807..ccccfca240 100644
--- a/src/lib/i18n/locales/de-DE/translation.json
+++ b/src/lib/i18n/locales/de-DE/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "alphanumerische Zeichen und Bindestriche",
"Already have an account?": "Haben Sie bereits einen Account?",
"an assistant": "ein Assistent",
+ "An error occurred while processing files.": "",
"and": "und",
"and create a new shared link.": "und erstellen Sie einen neuen freigegebenen Link.",
"API Base URL": "API-Basis-URL",
diff --git a/src/lib/i18n/locales/dg-DG/translation.json b/src/lib/i18n/locales/dg-DG/translation.json
index c27f4452b4..da3b9585a0 100644
--- a/src/lib/i18n/locales/dg-DG/translation.json
+++ b/src/lib/i18n/locales/dg-DG/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "so alpha, many hyphen",
"Already have an account?": "Such account exists?",
"an assistant": "such assistant",
+ "An error occurred while processing files.": "",
"and": "and",
"and create a new shared link.": "",
"API Base URL": "API Base URL",
diff --git a/src/lib/i18n/locales/en-GB/translation.json b/src/lib/i18n/locales/en-GB/translation.json
index bd38f5f6b9..74fd9f297e 100644
--- a/src/lib/i18n/locales/en-GB/translation.json
+++ b/src/lib/i18n/locales/en-GB/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "",
"Already have an account?": "",
"an assistant": "",
+ "An error occurred while processing files.": "",
"and": "",
"and create a new shared link.": "",
"API Base URL": "",
diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json
index bd38f5f6b9..74fd9f297e 100644
--- a/src/lib/i18n/locales/en-US/translation.json
+++ b/src/lib/i18n/locales/en-US/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "",
"Already have an account?": "",
"an assistant": "",
+ "An error occurred while processing files.": "",
"and": "",
"and create a new shared link.": "",
"API Base URL": "",
diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json
index 24ed299431..ec1d0f33ff 100644
--- a/src/lib/i18n/locales/es-ES/translation.json
+++ b/src/lib/i18n/locales/es-ES/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "caracteres alfanuméricos y guiones",
"Already have an account?": "¿Ya tienes una cuenta?",
"an assistant": "un asistente",
+ "An error occurred while processing files.": "",
"and": "y",
"and create a new shared link.": "y crear un nuevo enlace compartido.",
"API Base URL": "Dirección URL de la API",
diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json
index 8b156ff176..a89246f61f 100644
--- a/src/lib/i18n/locales/fa-IR/translation.json
+++ b/src/lib/i18n/locales/fa-IR/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "حروف الفبایی و خط فاصله",
"Already have an account?": "از قبل حساب کاربری دارید؟",
"an assistant": "یک دستیار",
+ "An error occurred while processing files.": "",
"and": "و",
"and create a new shared link.": "و یک لینک به اشتراک گذاری جدید ایجاد کنید.",
"API Base URL": "API Base URL",
diff --git a/src/lib/i18n/locales/fi-FI/translation.json b/src/lib/i18n/locales/fi-FI/translation.json
index c48000126c..8ece1d30ce 100644
--- a/src/lib/i18n/locales/fi-FI/translation.json
+++ b/src/lib/i18n/locales/fi-FI/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "kirjaimia, numeroita ja väliviivoja",
"Already have an account?": "Onko sinulla jo tili?",
"an assistant": "avustaja",
+ "An error occurred while processing files.": "",
"and": "ja",
"and create a new shared link.": "ja luo uusi jaettu linkki.",
"API Base URL": "APIn perus-URL",
diff --git a/src/lib/i18n/locales/fr-CA/translation.json b/src/lib/i18n/locales/fr-CA/translation.json
index bc85131c6a..f3838bd4c6 100644
--- a/src/lib/i18n/locales/fr-CA/translation.json
+++ b/src/lib/i18n/locales/fr-CA/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "caractères alphanumériques et tirets",
"Already have an account?": "Avez-vous déjà un compte ?",
"an assistant": "un assistant",
+ "An error occurred while processing files.": "",
"and": "et",
"and create a new shared link.": "et créer un nouveau lien partagé.",
"API Base URL": "URL de base de l'API",
diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json
index 04db7f054f..2732a1abd1 100644
--- a/src/lib/i18n/locales/fr-FR/translation.json
+++ b/src/lib/i18n/locales/fr-FR/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "caractères alphanumériques et tirets",
"Already have an account?": "Avez-vous déjà un compte ?",
"an assistant": "un assistant",
+ "An error occurred while processing files.": "",
"and": "et",
"and create a new shared link.": "et créer un nouveau lien partagé.",
"API Base URL": "URL de base de l'API",
diff --git a/src/lib/i18n/locales/he-IL/translation.json b/src/lib/i18n/locales/he-IL/translation.json
index 98ac9b3ef4..d7dc4588ab 100644
--- a/src/lib/i18n/locales/he-IL/translation.json
+++ b/src/lib/i18n/locales/he-IL/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "תווים אלפאנומריים ומקפים",
"Already have an account?": "כבר יש לך חשבון?",
"an assistant": "עוזר",
+ "An error occurred while processing files.": "",
"and": "וגם",
"and create a new shared link.": "וצור קישור משותף חדש.",
"API Base URL": "כתובת URL בסיסית ל-API",
diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json
index 7ee62f561c..d2a5cbf914 100644
--- a/src/lib/i18n/locales/hi-IN/translation.json
+++ b/src/lib/i18n/locales/hi-IN/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "अल्फ़ान्यूमेरिक वर्ण और हाइफ़न",
"Already have an account?": "क्या आपके पास पहले से एक खाता मौजूद है?",
"an assistant": "एक सहायक",
+ "An error occurred while processing files.": "",
"and": "और",
"and create a new shared link.": "और एक नई साझा लिंक बनाएं.",
"API Base URL": "एपीआई बेस यूआरएल",
diff --git a/src/lib/i18n/locales/hr-HR/translation.json b/src/lib/i18n/locales/hr-HR/translation.json
index ac46b3b9fc..7eca6d2c90 100644
--- a/src/lib/i18n/locales/hr-HR/translation.json
+++ b/src/lib/i18n/locales/hr-HR/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "alfanumerički znakovi i crtice",
"Already have an account?": "Već imate račun?",
"an assistant": "asistent",
+ "An error occurred while processing files.": "",
"and": "i",
"and create a new shared link.": "i stvorite novu dijeljenu vezu.",
"API Base URL": "Osnovni URL API-ja",
diff --git a/src/lib/i18n/locales/id-ID/translation.json b/src/lib/i18n/locales/id-ID/translation.json
index 226e9366ef..600dd59322 100644
--- a/src/lib/i18n/locales/id-ID/translation.json
+++ b/src/lib/i18n/locales/id-ID/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "karakter alfanumerik dan tanda hubung",
"Already have an account?": "Sudah memiliki akun?",
"an assistant": "asisten",
+ "An error occurred while processing files.": "",
"and": "dan",
"and create a new shared link.": "dan membuat tautan bersama baru.",
"API Base URL": "URL Dasar API",
diff --git a/src/lib/i18n/locales/it-IT/translation.json b/src/lib/i18n/locales/it-IT/translation.json
index c143d8e276..b2a81497f4 100644
--- a/src/lib/i18n/locales/it-IT/translation.json
+++ b/src/lib/i18n/locales/it-IT/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "caratteri alfanumerici e trattini",
"Already have an account?": "Hai già un account?",
"an assistant": "un assistente",
+ "An error occurred while processing files.": "",
"and": "e",
"and create a new shared link.": "e crea un nuovo link condiviso.",
"API Base URL": "URL base API",
diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json
index 2cd19cee53..8752f5ba3a 100644
--- a/src/lib/i18n/locales/ja-JP/translation.json
+++ b/src/lib/i18n/locales/ja-JP/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "英数字とハイフン",
"Already have an account?": "すでにアカウントをお持ちですか?",
"an assistant": "アシスタント",
+ "An error occurred while processing files.": "",
"and": "および",
"and create a new shared link.": "し、新しい共有リンクを作成します。",
"API Base URL": "API ベース URL",
diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json
index 22ff73af5b..ead974b956 100644
--- a/src/lib/i18n/locales/ka-GE/translation.json
+++ b/src/lib/i18n/locales/ka-GE/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "ალფანუმერული სიმბოლოები და დეფისები",
"Already have an account?": "უკვე გაქვს ანგარიში?",
"an assistant": "ასისტენტი",
+ "An error occurred while processing files.": "",
"and": "და",
"and create a new shared link.": "და შექმენით ახალი გაზიარებული ბმული.",
"API Base URL": "API საბაზისო URL",
diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json
index 39223a479f..09d401d7a0 100644
--- a/src/lib/i18n/locales/ko-KR/translation.json
+++ b/src/lib/i18n/locales/ko-KR/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "영문자, 숫자, 하이픈",
"Already have an account?": "이미 계정이 있으신가요?",
"an assistant": "어시스턴트",
+ "An error occurred while processing files.": "",
"and": "그리고",
"and create a new shared link.": "새로운 공유 링크를 생성합니다.",
"API Base URL": "API 기본 URL",
diff --git a/src/lib/i18n/locales/lt-LT/translation.json b/src/lib/i18n/locales/lt-LT/translation.json
index 614e5e9667..30dc2c0a66 100644
--- a/src/lib/i18n/locales/lt-LT/translation.json
+++ b/src/lib/i18n/locales/lt-LT/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "skaičiai, raidės ir brūkšneliai",
"Already have an account?": "Ar jau turite paskyrą?",
"an assistant": "assistentas",
+ "An error occurred while processing files.": "",
"and": "ir",
"and create a new shared link.": "sukurti naują dalinimosi nuorodą",
"API Base URL": "API basės nuoroda",
diff --git a/src/lib/i18n/locales/nb-NO/translation.json b/src/lib/i18n/locales/nb-NO/translation.json
index 3e53f73634..232f00a588 100644
--- a/src/lib/i18n/locales/nb-NO/translation.json
+++ b/src/lib/i18n/locales/nb-NO/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "alfanumeriske tegn og bindestreker",
"Already have an account?": "Har du allerede en konto?",
"an assistant": "en assistent",
+ "An error occurred while processing files.": "",
"and": "og",
"and create a new shared link.": "og opprett en ny delt lenke.",
"API Base URL": "API Grunn-URL",
diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json
index eb44c4493b..c4ee87f65a 100644
--- a/src/lib/i18n/locales/nl-NL/translation.json
+++ b/src/lib/i18n/locales/nl-NL/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "alfanumerieke karakters en streepjes",
"Already have an account?": "Heb je al een account?",
"an assistant": "een assistent",
+ "An error occurred while processing files.": "",
"and": "en",
"and create a new shared link.": "en maak een nieuwe gedeelde link.",
"API Base URL": "API Base URL",
diff --git a/src/lib/i18n/locales/pa-IN/translation.json b/src/lib/i18n/locales/pa-IN/translation.json
index e87e88144c..a7a6a833b8 100644
--- a/src/lib/i18n/locales/pa-IN/translation.json
+++ b/src/lib/i18n/locales/pa-IN/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "ਅਲਫ਼ਾਨਯੂਮੈਰਿਕ ਅੱਖਰ ਅਤੇ ਹਾਈਫਨ",
"Already have an account?": "ਪਹਿਲਾਂ ਹੀ ਖਾਤਾ ਹੈ?",
"an assistant": "ਇੱਕ ਸਹਾਇਕ",
+ "An error occurred while processing files.": "",
"and": "ਅਤੇ",
"and create a new shared link.": "ਅਤੇ ਇੱਕ ਨਵਾਂ ਸਾਂਝਾ ਲਿੰਕ ਬਣਾਓ।",
"API Base URL": "API ਬੇਸ URL",
diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json
index 17f4768ca3..44292a5f27 100644
--- a/src/lib/i18n/locales/pl-PL/translation.json
+++ b/src/lib/i18n/locales/pl-PL/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "znaki alfanumeryczne i myślniki",
"Already have an account?": "Masz już konto?",
"an assistant": "asystent",
+ "An error occurred while processing files.": "",
"and": "i",
"and create a new shared link.": "i utwórz nowy udostępniony link",
"API Base URL": "Podstawowy adres URL interfejsu API",
diff --git a/src/lib/i18n/locales/pt-BR/translation.json b/src/lib/i18n/locales/pt-BR/translation.json
index 8e1e0baeee..ee2fcee886 100644
--- a/src/lib/i18n/locales/pt-BR/translation.json
+++ b/src/lib/i18n/locales/pt-BR/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "caracteres alfanuméricos e hífens",
"Already have an account?": "Já tem uma conta?",
"an assistant": "um assistente",
+ "An error occurred while processing files.": "",
"and": "e",
"and create a new shared link.": "e criar um novo link compartilhado.",
"API Base URL": "URL Base da API",
diff --git a/src/lib/i18n/locales/pt-PT/translation.json b/src/lib/i18n/locales/pt-PT/translation.json
index 7b18b2e49d..871e6074f4 100644
--- a/src/lib/i18n/locales/pt-PT/translation.json
+++ b/src/lib/i18n/locales/pt-PT/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "caracteres alfanuméricos e hífens",
"Already have an account?": "Já tem uma conta?",
"an assistant": "um assistente",
+ "An error occurred while processing files.": "",
"and": "e",
"and create a new shared link.": "e criar um novo link partilhado.",
"API Base URL": "URL Base da API",
diff --git a/src/lib/i18n/locales/ro-RO/translation.json b/src/lib/i18n/locales/ro-RO/translation.json
index ef26b42b63..924485ae50 100644
--- a/src/lib/i18n/locales/ro-RO/translation.json
+++ b/src/lib/i18n/locales/ro-RO/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "caractere alfanumerice și cratime",
"Already have an account?": "Deja ai un cont?",
"an assistant": "un asistent",
+ "An error occurred while processing files.": "",
"and": "și",
"and create a new shared link.": "și creează un nou link partajat.",
"API Base URL": "URL Bază API",
diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json
index 29a2718a70..35ce6f1ebe 100644
--- a/src/lib/i18n/locales/ru-RU/translation.json
+++ b/src/lib/i18n/locales/ru-RU/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "буквенно цифровые символы и дефисы",
"Already have an account?": "У вас уже есть учетная запись?",
"an assistant": "ассистент",
+ "An error occurred while processing files.": "",
"and": "и",
"and create a new shared link.": "и создайте новую общую ссылку.",
"API Base URL": "Базовый адрес API",
diff --git a/src/lib/i18n/locales/sr-RS/translation.json b/src/lib/i18n/locales/sr-RS/translation.json
index 9bc1d7c790..6b3e2c26d3 100644
--- a/src/lib/i18n/locales/sr-RS/translation.json
+++ b/src/lib/i18n/locales/sr-RS/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "алфанумерички знакови и цртице",
"Already have an account?": "Већ имате налог?",
"an assistant": "помоћник",
+ "An error occurred while processing files.": "",
"and": "и",
"and create a new shared link.": "и направи нову дељену везу.",
"API Base URL": "Основна адреса API-ја",
diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json
index 84d5a8c8c1..e0ffa907d2 100644
--- a/src/lib/i18n/locales/sv-SE/translation.json
+++ b/src/lib/i18n/locales/sv-SE/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "alfanumeriska tecken och bindestreck",
"Already have an account?": "Har du redan ett konto?",
"an assistant": "en assistent",
+ "An error occurred while processing files.": "",
"and": "och",
"and create a new shared link.": "och skapa en ny delad länk.",
"API Base URL": "API-bas-URL",
diff --git a/src/lib/i18n/locales/th-TH/translation.json b/src/lib/i18n/locales/th-TH/translation.json
index 7dc1c2e955..14e45cc13a 100644
--- a/src/lib/i18n/locales/th-TH/translation.json
+++ b/src/lib/i18n/locales/th-TH/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "อักขระตัวเลขและขีดกลาง",
"Already have an account?": "มีบัญชีอยู่แล้ว?",
"an assistant": "ผู้ช่วย",
+ "An error occurred while processing files.": "",
"and": "และ",
"and create a new shared link.": "และสร้างลิงก์ที่แชร์ใหม่",
"API Base URL": "URL ฐานของ API",
diff --git a/src/lib/i18n/locales/tk-TM/transaltion.json b/src/lib/i18n/locales/tk-TM/transaltion.json
index 3a97865c3b..5f0cae683e 100644
--- a/src/lib/i18n/locales/tk-TM/transaltion.json
+++ b/src/lib/i18n/locales/tk-TM/transaltion.json
@@ -40,6 +40,7 @@
"alphanumeric characters and hyphens": "harply-sanjy belgiler we defisler",
"Already have an account?": "Hasabyňyz barmy?",
"an assistant": "kömekçi",
+ "An error occurred while processing files.": "",
"and": "we",
"and create a new shared link.": "we täze paýlaşylan baglanyşyk dörediň.",
"API Base URL": "API Esasy URL",
diff --git a/src/lib/i18n/locales/tk-TW/translation.json b/src/lib/i18n/locales/tk-TW/translation.json
index bd38f5f6b9..74fd9f297e 100644
--- a/src/lib/i18n/locales/tk-TW/translation.json
+++ b/src/lib/i18n/locales/tk-TW/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "",
"Already have an account?": "",
"an assistant": "",
+ "An error occurred while processing files.": "",
"and": "",
"and create a new shared link.": "",
"API Base URL": "",
diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json
index 35c0c03a2c..c6313a4340 100644
--- a/src/lib/i18n/locales/tr-TR/translation.json
+++ b/src/lib/i18n/locales/tr-TR/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "alfanumerik karakterler ve tireler",
"Already have an account?": "Zaten bir hesabınız mı var?",
"an assistant": "bir asistan",
+ "An error occurred while processing files.": "",
"and": "ve",
"and create a new shared link.": "ve yeni bir paylaşılan bağlantı oluşturun.",
"API Base URL": "API Temel URL",
diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json
index 483a84e835..69bbcacaf8 100644
--- a/src/lib/i18n/locales/uk-UA/translation.json
+++ b/src/lib/i18n/locales/uk-UA/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "алфавітно-цифрові символи та дефіси",
"Already have an account?": "Вже є обліковий запис?",
"an assistant": "асистента",
+ "An error occurred while processing files.": "",
"and": "та",
"and create a new shared link.": "і створіть нове спільне посилання.",
"API Base URL": "URL-адреса API",
diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json
index 58f472f4d2..0a99a5c16e 100644
--- a/src/lib/i18n/locales/vi-VN/translation.json
+++ b/src/lib/i18n/locales/vi-VN/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "ký tự số và gạch nối",
"Already have an account?": "Bạn đã có tài khoản?",
"an assistant": "trợ lý",
+ "An error occurred while processing files.": "",
"and": "và",
"and create a new shared link.": "và tạo một link chia sẻ mới",
"API Base URL": "Đường dẫn tới API (API Base URL)",
diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json
index 0946e83284..b273e08d4e 100644
--- a/src/lib/i18n/locales/zh-CN/translation.json
+++ b/src/lib/i18n/locales/zh-CN/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "字母数字字符和连字符",
"Already have an account?": "已经拥有账号了?",
"an assistant": "助手",
+ "An error occurred while processing files.": "",
"and": "和",
"and create a new shared link.": "并创建一个新的分享链接。",
"API Base URL": "API 基础地址",
diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json
index 7b2a6c09d6..e6f590a95f 100644
--- a/src/lib/i18n/locales/zh-TW/translation.json
+++ b/src/lib/i18n/locales/zh-TW/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "英文字母、數字和連字號",
"Already have an account?": "已經有帳號了嗎?",
"an assistant": "一位助手",
+ "An error occurred while processing files.": "",
"and": "和",
"and create a new shared link.": "並建立新的共用連結。",
"API Base URL": "API 基礎 URL",
From ebca735f5ee08d948bd1a5b2a4f16f50e7ee17aa Mon Sep 17 00:00:00 2001
From: Clivia <132346501+Yanyutin753@users.noreply.github.com>
Date: Mon, 26 Aug 2024 23:53:51 +0800
Subject: [PATCH 04/12] =?UTF-8?q?=F0=9F=92=84Fix=20format?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/lib/components/chat/MessageInput.svelte | 5 +----
src/lib/i18n/locales/ar-BH/translation.json | 2 ++
src/lib/i18n/locales/bg-BG/translation.json | 2 ++
src/lib/i18n/locales/bn-BD/translation.json | 2 ++
src/lib/i18n/locales/ca-ES/translation.json | 2 ++
src/lib/i18n/locales/ceb-PH/translation.json | 2 ++
src/lib/i18n/locales/de-DE/translation.json | 2 ++
src/lib/i18n/locales/dg-DG/translation.json | 2 ++
src/lib/i18n/locales/en-GB/translation.json | 2 ++
src/lib/i18n/locales/en-US/translation.json | 2 ++
src/lib/i18n/locales/es-ES/translation.json | 2 ++
src/lib/i18n/locales/fa-IR/translation.json | 2 ++
src/lib/i18n/locales/fi-FI/translation.json | 2 ++
src/lib/i18n/locales/fr-CA/translation.json | 2 ++
src/lib/i18n/locales/fr-FR/translation.json | 2 ++
src/lib/i18n/locales/he-IL/translation.json | 2 ++
src/lib/i18n/locales/hi-IN/translation.json | 2 ++
src/lib/i18n/locales/hr-HR/translation.json | 2 ++
src/lib/i18n/locales/id-ID/translation.json | 2 ++
src/lib/i18n/locales/it-IT/translation.json | 2 ++
src/lib/i18n/locales/ja-JP/translation.json | 2 ++
src/lib/i18n/locales/ka-GE/translation.json | 2 ++
src/lib/i18n/locales/ko-KR/translation.json | 2 ++
src/lib/i18n/locales/lt-LT/translation.json | 2 ++
src/lib/i18n/locales/ms-MY/translation.json | 2 ++
src/lib/i18n/locales/nb-NO/translation.json | 2 ++
src/lib/i18n/locales/nl-NL/translation.json | 2 ++
src/lib/i18n/locales/pa-IN/translation.json | 2 ++
src/lib/i18n/locales/pl-PL/translation.json | 2 ++
src/lib/i18n/locales/pt-BR/translation.json | 2 ++
src/lib/i18n/locales/pt-PT/translation.json | 2 ++
src/lib/i18n/locales/ro-RO/translation.json | 2 ++
src/lib/i18n/locales/ru-RU/translation.json | 2 ++
src/lib/i18n/locales/sr-RS/translation.json | 2 ++
src/lib/i18n/locales/sv-SE/translation.json | 2 ++
src/lib/i18n/locales/th-TH/translation.json | 2 ++
src/lib/i18n/locales/tk-TW/translation.json | 2 ++
src/lib/i18n/locales/tr-TR/translation.json | 2 ++
src/lib/i18n/locales/uk-UA/translation.json | 2 ++
src/lib/i18n/locales/vi-VN/translation.json | 2 ++
src/lib/i18n/locales/zh-CN/translation.json | 2 ++
src/lib/i18n/locales/zh-TW/translation.json | 2 ++
42 files changed, 83 insertions(+), 4 deletions(-)
diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte
index 7067832876..4d47a9cf5c 100644
--- a/src/lib/components/chat/MessageInput.svelte
+++ b/src/lib/components/chat/MessageInput.svelte
@@ -17,10 +17,7 @@
import { blobToFile, findWordIndices } from '$lib/utils';
import { transcribeAudio } from '$lib/apis/audio';
- import {
- getFileLimitSettings,
- processDocToVectorDB,
- } from '$lib/apis/rag';
+ import { getFileLimitSettings, processDocToVectorDB } from '$lib/apis/rag';
import { uploadFile } from '$lib/apis/files';
import {
diff --git a/src/lib/i18n/locales/ar-BH/translation.json b/src/lib/i18n/locales/ar-BH/translation.json
index c418fa5813..19d99efb61 100644
--- a/src/lib/i18n/locales/ar-BH/translation.json
+++ b/src/lib/i18n/locales/ar-BH/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "أدخل معرف محرك PSE من Google",
"Enter Image Size (e.g. 512x512)": "(e.g. 512x512) أدخل حجم الصورة ",
"Enter language codes": "أدخل كود اللغة",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "(e.g. {{modelTag}}) أدخل الموديل تاق",
"Enter Number of Steps (e.g. 50)": "(e.g. 50) أدخل عدد الخطوات",
diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json
index 258040b100..cf90cbb3ee 100644
--- a/src/lib/i18n/locales/bg-BG/translation.json
+++ b/src/lib/i18n/locales/bg-BG/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Въведете идентификатор на двигателя на Google PSE",
"Enter Image Size (e.g. 512x512)": "Въведете размер на изображението (напр. 512x512)",
"Enter language codes": "Въведете кодове на езика",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Въведете таг на модел (напр. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Въведете брой стъпки (напр. 50)",
diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json
index 985fd0e5f8..4f35e471df 100644
--- a/src/lib/i18n/locales/bn-BD/translation.json
+++ b/src/lib/i18n/locales/bn-BD/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "গুগল পিএসই ইঞ্জিন আইডি লিখুন",
"Enter Image Size (e.g. 512x512)": "ছবির মাপ লিখুন (যেমন 512x512)",
"Enter language codes": "ল্যাঙ্গুয়েজ কোড লিখুন",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "মডেল ট্যাগ লিখুন (e.g. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "ধাপের সংখ্যা দিন (যেমন: 50)",
diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json
index d786761b53..81bcd939ad 100644
--- a/src/lib/i18n/locales/ca-ES/translation.json
+++ b/src/lib/i18n/locales/ca-ES/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Introdueix l'identificador del motor PSE de Google",
"Enter Image Size (e.g. 512x512)": "Introdueix la mida de la imatge (p. ex. 512x512)",
"Enter language codes": "Introdueix els codis de llenguatge",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "Introdueix l'identificador del model",
"Enter model tag (e.g. {{modelTag}})": "Introdueix l'etiqueta del model (p. ex. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Introdueix el nombre de passos (p. ex. 50)",
diff --git a/src/lib/i18n/locales/ceb-PH/translation.json b/src/lib/i18n/locales/ceb-PH/translation.json
index c046eeff33..5dcbb59912 100644
--- a/src/lib/i18n/locales/ceb-PH/translation.json
+++ b/src/lib/i18n/locales/ceb-PH/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "",
"Enter Image Size (e.g. 512x512)": "Pagsulod sa gidak-on sa hulagway (pananglitan 512x512)",
"Enter language codes": "",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Pagsulod sa template tag (e.g. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Pagsulod sa gidaghanon sa mga lakang (e.g. 50)",
diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json
index ccccfca240..dd1f096aad 100644
--- a/src/lib/i18n/locales/de-DE/translation.json
+++ b/src/lib/i18n/locales/de-DE/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Geben Sie die Google PSE-Engine-ID ein",
"Enter Image Size (e.g. 512x512)": "Geben Sie die Bildgröße ein (z. B. 512x512)",
"Enter language codes": "Geben Sie die Sprachcodes ein",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Gebn Sie den Model-Tag ein",
"Enter Number of Steps (e.g. 50)": "Geben Sie die Anzahl an Schritten ein (z. B. 50)",
diff --git a/src/lib/i18n/locales/dg-DG/translation.json b/src/lib/i18n/locales/dg-DG/translation.json
index da3b9585a0..71c7b1e375 100644
--- a/src/lib/i18n/locales/dg-DG/translation.json
+++ b/src/lib/i18n/locales/dg-DG/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "",
"Enter Image Size (e.g. 512x512)": "Enter Size of Wow (e.g. 512x512)",
"Enter language codes": "",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Enter model doge tag (e.g. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Enter Number of Steps (e.g. 50)",
diff --git a/src/lib/i18n/locales/en-GB/translation.json b/src/lib/i18n/locales/en-GB/translation.json
index 74fd9f297e..50803353f3 100644
--- a/src/lib/i18n/locales/en-GB/translation.json
+++ b/src/lib/i18n/locales/en-GB/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "",
"Enter Image Size (e.g. 512x512)": "",
"Enter language codes": "",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "",
"Enter Number of Steps (e.g. 50)": "",
diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json
index 74fd9f297e..50803353f3 100644
--- a/src/lib/i18n/locales/en-US/translation.json
+++ b/src/lib/i18n/locales/en-US/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "",
"Enter Image Size (e.g. 512x512)": "",
"Enter language codes": "",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "",
"Enter Number of Steps (e.g. 50)": "",
diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json
index ec1d0f33ff..e2ba3a2353 100644
--- a/src/lib/i18n/locales/es-ES/translation.json
+++ b/src/lib/i18n/locales/es-ES/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Introduzca el ID del motor PSE de Google",
"Enter Image Size (e.g. 512x512)": "Ingrese el tamaño de la imagen (p.ej. 512x512)",
"Enter language codes": "Ingrese códigos de idioma",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Ingrese la etiqueta del modelo (p.ej. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Ingrese el número de pasos (p.ej., 50)",
diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json
index a89246f61f..7eaf65e7be 100644
--- a/src/lib/i18n/locales/fa-IR/translation.json
+++ b/src/lib/i18n/locales/fa-IR/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "شناسه موتور PSE گوگل را وارد کنید",
"Enter Image Size (e.g. 512x512)": "اندازه تصویر را وارد کنید (مثال: 512x512)",
"Enter language codes": "کد زبان را وارد کنید",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "تگ مدل را وارد کنید (مثلا {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "تعداد گام ها را وارد کنید (مثال: 50)",
diff --git a/src/lib/i18n/locales/fi-FI/translation.json b/src/lib/i18n/locales/fi-FI/translation.json
index 8ece1d30ce..021ba3e8ec 100644
--- a/src/lib/i18n/locales/fi-FI/translation.json
+++ b/src/lib/i18n/locales/fi-FI/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Anna Google PSE -moottorin tunnus",
"Enter Image Size (e.g. 512x512)": "Syötä kuvan koko (esim. 512x512)",
"Enter language codes": "Syötä kielikoodit",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Syötä mallitagi (esim. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Syötä askelien määrä (esim. 50)",
diff --git a/src/lib/i18n/locales/fr-CA/translation.json b/src/lib/i18n/locales/fr-CA/translation.json
index f3838bd4c6..a8d9bd79d9 100644
--- a/src/lib/i18n/locales/fr-CA/translation.json
+++ b/src/lib/i18n/locales/fr-CA/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Entrez l'identifiant du moteur Google PSE",
"Enter Image Size (e.g. 512x512)": "Entrez la taille de l'image (par ex. 512x512)",
"Enter language codes": "Entrez les codes de langue",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Entrez l'étiquette du modèle (par ex. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Entrez le nombre de pas (par ex. 50)",
diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json
index 2732a1abd1..eb2cf9774b 100644
--- a/src/lib/i18n/locales/fr-FR/translation.json
+++ b/src/lib/i18n/locales/fr-FR/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Entrez l'identifiant du moteur Google PSE",
"Enter Image Size (e.g. 512x512)": "Entrez la taille de l'image (par ex. 512x512)",
"Enter language codes": "Entrez les codes de langue",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "Entrez l'id du model",
"Enter model tag (e.g. {{modelTag}})": "Entrez l'étiquette du modèle (par ex. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Entrez le nombre de pas (par ex. 50)",
diff --git a/src/lib/i18n/locales/he-IL/translation.json b/src/lib/i18n/locales/he-IL/translation.json
index d7dc4588ab..1c9e59beff 100644
--- a/src/lib/i18n/locales/he-IL/translation.json
+++ b/src/lib/i18n/locales/he-IL/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "הזן את מזהה מנוע PSE של Google",
"Enter Image Size (e.g. 512x512)": "הזן גודל תמונה (למשל 512x512)",
"Enter language codes": "הזן קודי שפה",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "הזן תג מודל (למשל {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "הזן מספר שלבים (למשל 50)",
diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json
index d2a5cbf914..fbe2068612 100644
--- a/src/lib/i18n/locales/hi-IN/translation.json
+++ b/src/lib/i18n/locales/hi-IN/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Google PSE इंजन आईडी दर्ज करें",
"Enter Image Size (e.g. 512x512)": "छवि का आकार दर्ज करें (उदा. 512x512)",
"Enter language codes": "भाषा कोड दर्ज करें",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Model tag दर्ज करें (उदा. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "चरणों की संख्या दर्ज करें (उदा. 50)",
diff --git a/src/lib/i18n/locales/hr-HR/translation.json b/src/lib/i18n/locales/hr-HR/translation.json
index 7eca6d2c90..3c06517e46 100644
--- a/src/lib/i18n/locales/hr-HR/translation.json
+++ b/src/lib/i18n/locales/hr-HR/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Unesite ID Google PSE motora",
"Enter Image Size (e.g. 512x512)": "Unesite veličinu slike (npr. 512x512)",
"Enter language codes": "Unesite kodove jezika",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Unesite oznaku modela (npr. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Unesite broj koraka (npr. 50)",
diff --git a/src/lib/i18n/locales/id-ID/translation.json b/src/lib/i18n/locales/id-ID/translation.json
index 600dd59322..fcb1c653cc 100644
--- a/src/lib/i18n/locales/id-ID/translation.json
+++ b/src/lib/i18n/locales/id-ID/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Masukkan Id Mesin Google PSE",
"Enter Image Size (e.g. 512x512)": "Masukkan Ukuran Gambar (mis. 512x512)",
"Enter language codes": "Masukkan kode bahasa",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Masukkan tag model (misalnya {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Masukkan Jumlah Langkah (mis. 50)",
diff --git a/src/lib/i18n/locales/it-IT/translation.json b/src/lib/i18n/locales/it-IT/translation.json
index b2a81497f4..f834b04d99 100644
--- a/src/lib/i18n/locales/it-IT/translation.json
+++ b/src/lib/i18n/locales/it-IT/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Inserisci l'ID motore PSE di Google",
"Enter Image Size (e.g. 512x512)": "Inserisci la dimensione dell'immagine (ad esempio 512x512)",
"Enter language codes": "Inserisci i codici lingua",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Inserisci il tag del modello (ad esempio {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Inserisci il numero di passaggi (ad esempio 50)",
diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json
index 8752f5ba3a..fda1ae934d 100644
--- a/src/lib/i18n/locales/ja-JP/translation.json
+++ b/src/lib/i18n/locales/ja-JP/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Google PSE エンジン ID を入力します。",
"Enter Image Size (e.g. 512x512)": "画像サイズを入力してください (例: 512x512)",
"Enter language codes": "言語コードを入力してください",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "モデルタグを入力してください (例: {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "ステップ数を入力してください (例: 50)",
diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json
index ead974b956..45c432b08d 100644
--- a/src/lib/i18n/locales/ka-GE/translation.json
+++ b/src/lib/i18n/locales/ka-GE/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "შეიყვანეთ Google PSE ძრავის ID",
"Enter Image Size (e.g. 512x512)": "შეიყვანეთ სურათის ზომა (მაგ. 512x512)",
"Enter language codes": "შეიყვანეთ ენის კოდი",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "შეიყვანეთ მოდელის ტეგი (მაგ. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "შეიყვანეთ ნაბიჯების რაოდენობა (მაგ. 50)",
diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json
index 09d401d7a0..fbf64a14d7 100644
--- a/src/lib/i18n/locales/ko-KR/translation.json
+++ b/src/lib/i18n/locales/ko-KR/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Google PSE 엔진 ID 입력",
"Enter Image Size (e.g. 512x512)": "이미지 크기 입력(예: 512x512)",
"Enter language codes": "언어 코드 입력",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "모델 태그 입력(예: {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "단계 수 입력(예: 50)",
diff --git a/src/lib/i18n/locales/lt-LT/translation.json b/src/lib/i18n/locales/lt-LT/translation.json
index 30dc2c0a66..532ff845a6 100644
--- a/src/lib/i18n/locales/lt-LT/translation.json
+++ b/src/lib/i18n/locales/lt-LT/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Įveskite Google PSE variklio ID",
"Enter Image Size (e.g. 512x512)": "Įveskite paveiksliuko dydį (pvz. 512x512)",
"Enter language codes": "Įveskite kalbos kodus",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Įveskite modelio žymą (pvz. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Įveskite žingsnių kiekį (pvz. 50)",
diff --git a/src/lib/i18n/locales/ms-MY/translation.json b/src/lib/i18n/locales/ms-MY/translation.json
index ff788b6e91..998f786f9c 100644
--- a/src/lib/i18n/locales/ms-MY/translation.json
+++ b/src/lib/i18n/locales/ms-MY/translation.json
@@ -244,6 +244,8 @@
"Enter Google PSE Engine Id": "Masukkan Id Enjin Google PSE",
"Enter Image Size (e.g. 512x512)": "Masukkan Saiz Imej (cth 512x512)",
"Enter language codes": "Masukkan kod bahasa",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Masukkan tag model (cth {{ modelTag }})",
"Enter Number of Steps (e.g. 50)": "Masukkan Bilangan Langkah (cth 50)",
diff --git a/src/lib/i18n/locales/nb-NO/translation.json b/src/lib/i18n/locales/nb-NO/translation.json
index 232f00a588..99bceb305c 100644
--- a/src/lib/i18n/locales/nb-NO/translation.json
+++ b/src/lib/i18n/locales/nb-NO/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Skriv inn Google PSE Motor-ID",
"Enter Image Size (e.g. 512x512)": "Skriv inn bildestørrelse (f.eks. 512x512)",
"Enter language codes": "Skriv inn språkkoder",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Skriv inn modelltag (f.eks. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Skriv inn antall steg (f.eks. 50)",
diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json
index c4ee87f65a..cb70cf47a7 100644
--- a/src/lib/i18n/locales/nl-NL/translation.json
+++ b/src/lib/i18n/locales/nl-NL/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Voer Google PSE Engine-ID in",
"Enter Image Size (e.g. 512x512)": "Voeg afbeelding formaat toe (Bijv. 512x512)",
"Enter language codes": "Voeg taal codes toe",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Voeg model tag toe (Bijv. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Voeg aantal stappen toe (Bijv. 50)",
diff --git a/src/lib/i18n/locales/pa-IN/translation.json b/src/lib/i18n/locales/pa-IN/translation.json
index a7a6a833b8..83cfd333d4 100644
--- a/src/lib/i18n/locales/pa-IN/translation.json
+++ b/src/lib/i18n/locales/pa-IN/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Google PSE ਇੰਜਣ ID ਦਾਖਲ ਕਰੋ",
"Enter Image Size (e.g. 512x512)": "ਚਿੱਤਰ ਆਕਾਰ ਦਰਜ ਕਰੋ (ਉਦਾਹਰਣ ਲਈ 512x512)",
"Enter language codes": "ਭਾਸ਼ਾ ਕੋਡ ਦਰਜ ਕਰੋ",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "ਮਾਡਲ ਟੈਗ ਦਰਜ ਕਰੋ (ਉਦਾਹਰਣ ਲਈ {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ ਦਰਜ ਕਰੋ (ਉਦਾਹਰਣ ਲਈ 50)",
diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json
index 44292a5f27..627eb16178 100644
--- a/src/lib/i18n/locales/pl-PL/translation.json
+++ b/src/lib/i18n/locales/pl-PL/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Wprowadź identyfikator aparatu Google PSE",
"Enter Image Size (e.g. 512x512)": "Wprowadź rozmiar obrazu (np. 512x512)",
"Enter language codes": "Wprowadź kody języków",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Wprowadź tag modelu (np. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Wprowadź liczbę kroków (np. 50)",
diff --git a/src/lib/i18n/locales/pt-BR/translation.json b/src/lib/i18n/locales/pt-BR/translation.json
index ee2fcee886..283e269996 100644
--- a/src/lib/i18n/locales/pt-BR/translation.json
+++ b/src/lib/i18n/locales/pt-BR/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Digite o ID do Motor do Google PSE",
"Enter Image Size (e.g. 512x512)": "Digite o Tamanho da Imagem (por exemplo, 512x512)",
"Enter language codes": "Digite os códigos de idioma",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Digite a tag do modelo (por exemplo, {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Digite o Número de Passos (por exemplo, 50)",
diff --git a/src/lib/i18n/locales/pt-PT/translation.json b/src/lib/i18n/locales/pt-PT/translation.json
index 871e6074f4..91026b8fdf 100644
--- a/src/lib/i18n/locales/pt-PT/translation.json
+++ b/src/lib/i18n/locales/pt-PT/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Escreva o ID do mecanismo PSE do Google",
"Enter Image Size (e.g. 512x512)": "Escreva o Tamanho da Imagem (por exemplo, 512x512)",
"Enter language codes": "Escreva os códigos de idioma",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Escreva a tag do modelo (por exemplo, {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Escreva o Número de Etapas (por exemplo, 50)",
diff --git a/src/lib/i18n/locales/ro-RO/translation.json b/src/lib/i18n/locales/ro-RO/translation.json
index 924485ae50..9a4adb6f9a 100644
--- a/src/lib/i18n/locales/ro-RO/translation.json
+++ b/src/lib/i18n/locales/ro-RO/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Introduceți ID-ul Motorului Google PSE",
"Enter Image Size (e.g. 512x512)": "Introduceți Dimensiunea Imaginii (de ex. 512x512)",
"Enter language codes": "Introduceți codurile limbilor",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Introduceți eticheta modelului (de ex. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Introduceți Numărul de Pași (de ex. 50)",
diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json
index 35ce6f1ebe..0a3feaffc5 100644
--- a/src/lib/i18n/locales/ru-RU/translation.json
+++ b/src/lib/i18n/locales/ru-RU/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Введите Id движка Google PSE",
"Enter Image Size (e.g. 512x512)": "Введите размер изображения (например, 512x512)",
"Enter language codes": "Введите коды языков",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Введите тег модели (например, {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Введите количество шагов (например, 50)",
diff --git a/src/lib/i18n/locales/sr-RS/translation.json b/src/lib/i18n/locales/sr-RS/translation.json
index 6b3e2c26d3..f98530b95f 100644
--- a/src/lib/i18n/locales/sr-RS/translation.json
+++ b/src/lib/i18n/locales/sr-RS/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Унесите Гоогле ПСЕ ИД машине",
"Enter Image Size (e.g. 512x512)": "Унесите величину слике (нпр. 512x512)",
"Enter language codes": "Унесите кодове језика",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Унесите ознаку модела (нпр. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Унесите број корака (нпр. 50)",
diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json
index e0ffa907d2..68895c3cc3 100644
--- a/src/lib/i18n/locales/sv-SE/translation.json
+++ b/src/lib/i18n/locales/sv-SE/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Ange Google PSE Engine Id",
"Enter Image Size (e.g. 512x512)": "Ange bildstorlek (t.ex. 512x512)",
"Enter language codes": "Skriv språkkoder",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Ange modelltagg (t.ex. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Ange antal steg (t.ex. 50)",
diff --git a/src/lib/i18n/locales/th-TH/translation.json b/src/lib/i18n/locales/th-TH/translation.json
index 14e45cc13a..1f85170162 100644
--- a/src/lib/i18n/locales/th-TH/translation.json
+++ b/src/lib/i18n/locales/th-TH/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "ใส่รหัสเครื่องยนต์ของ Google PSE",
"Enter Image Size (e.g. 512x512)": "ใส่ขนาดภาพ (เช่น 512x512)",
"Enter language codes": "ใส่รหัสภาษา",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "ใส่แท็กโมเดล (เช่น {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "ใส่จำนวนขั้นตอน (เช่น 50)",
diff --git a/src/lib/i18n/locales/tk-TW/translation.json b/src/lib/i18n/locales/tk-TW/translation.json
index 74fd9f297e..50803353f3 100644
--- a/src/lib/i18n/locales/tk-TW/translation.json
+++ b/src/lib/i18n/locales/tk-TW/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "",
"Enter Image Size (e.g. 512x512)": "",
"Enter language codes": "",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "",
"Enter Number of Steps (e.g. 50)": "",
diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json
index c6313a4340..05d61de431 100644
--- a/src/lib/i18n/locales/tr-TR/translation.json
+++ b/src/lib/i18n/locales/tr-TR/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Google PSE Engine Id'sini Girin",
"Enter Image Size (e.g. 512x512)": "Görüntü Boyutunu Girin (örn. 512x512)",
"Enter language codes": "Dil kodlarını girin",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Model etiketini girin (örn. {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Adım Sayısını Girin (örn. 50)",
diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json
index 69bbcacaf8..7ea31fbded 100644
--- a/src/lib/i18n/locales/uk-UA/translation.json
+++ b/src/lib/i18n/locales/uk-UA/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Введіть Google PSE Engine Id",
"Enter Image Size (e.g. 512x512)": "Введіть розмір зображення (напр., 512x512)",
"Enter language codes": "Введіть мовні коди",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Введіть тег моделі (напр., {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Введіть кількість кроків (напр., 50)",
diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json
index 0a99a5c16e..dcd595ea77 100644
--- a/src/lib/i18n/locales/vi-VN/translation.json
+++ b/src/lib/i18n/locales/vi-VN/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "Nhập Google PSE Engine Id",
"Enter Image Size (e.g. 512x512)": "Nhập Kích thước ảnh (vd: 512x512)",
"Enter language codes": "Nhập mã ngôn ngữ",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "Nhập thẻ mô hình (vd: {{modelTag}})",
"Enter Number of Steps (e.g. 50)": "Nhập số Steps (vd: 50)",
diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json
index b273e08d4e..fd90599df5 100644
--- a/src/lib/i18n/locales/zh-CN/translation.json
+++ b/src/lib/i18n/locales/zh-CN/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "输入 Google PSE 引擎 ID",
"Enter Image Size (e.g. 512x512)": "输入图像分辨率 (例如:512x512)",
"Enter language codes": "输入语言代码",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "输入模型 ID",
"Enter model tag (e.g. {{modelTag}})": "输入模型标签 (例如:{{modelTag}})",
"Enter Number of Steps (e.g. 50)": "输入步骤数 (Steps) (例如:50)",
diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json
index e6f590a95f..ecffab82f5 100644
--- a/src/lib/i18n/locales/zh-TW/translation.json
+++ b/src/lib/i18n/locales/zh-TW/translation.json
@@ -245,6 +245,8 @@
"Enter Google PSE Engine Id": "輸入 Google PSE 引擎 ID",
"Enter Image Size (e.g. 512x512)": "輸入圖片大小(例如:512x512)",
"Enter language codes": "輸入語言代碼",
+ "Enter Max File Count": "",
+ "Enter Max File Size(MB)": "",
"Enter Model ID": "",
"Enter model tag (e.g. {{modelTag}})": "輸入模型標籤(例如:{{modelTag}})",
"Enter Number of Steps (e.g. 50)": "輸入步驟數(例如:50)",
From 29cbdbcadd7cb781f23ca606ab2a8a77e6683235 Mon Sep 17 00:00:00 2001
From: Clivia <132346501+Yanyutin753@users.noreply.github.com>
Date: Mon, 26 Aug 2024 23:59:53 +0800
Subject: [PATCH 05/12] =?UTF-8?q?=F0=9F=92=84Fix=20format?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/lib/i18n/locales/ca-ES/translation.json | 1 +
src/lib/i18n/locales/fr-FR/translation.json | 1 +
src/lib/i18n/locales/lt-LT/translation.json | 3 +++
src/lib/i18n/locales/ms-MY/translation.json | 4 ++++
src/lib/i18n/locales/ru-RU/translation.json | 3 +++
src/lib/i18n/locales/zh-TW/translation.json | 3 +++
6 files changed, 15 insertions(+)
diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json
index 81bcd939ad..749fbe6261 100644
--- a/src/lib/i18n/locales/ca-ES/translation.json
+++ b/src/lib/i18n/locales/ca-ES/translation.json
@@ -288,6 +288,7 @@
"File": "Arxiu",
"File Mode": "Mode d'arxiu",
"File not found.": "No s'ha trobat l'arxiu.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Arxius",
"Filter is now globally disabled": "El filtre ha estat desactivat globalment",
"Filter is now globally enabled": "El filtre ha estat activat globalment",
diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json
index eb2cf9774b..6d09bbb938 100644
--- a/src/lib/i18n/locales/fr-FR/translation.json
+++ b/src/lib/i18n/locales/fr-FR/translation.json
@@ -288,6 +288,7 @@
"File": "Fichier",
"File Mode": "Mode fichier",
"File not found.": "Fichier introuvable.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Fichiers",
"Filter is now globally disabled": "Le filtre est maintenant désactivé globalement",
"Filter is now globally enabled": "Le filtre est désormais activé globalement",
diff --git a/src/lib/i18n/locales/lt-LT/translation.json b/src/lib/i18n/locales/lt-LT/translation.json
index 532ff845a6..83e5c2cc01 100644
--- a/src/lib/i18n/locales/lt-LT/translation.json
+++ b/src/lib/i18n/locales/lt-LT/translation.json
@@ -288,6 +288,7 @@
"File": "Rinkmena",
"File Mode": "Rinkmenų rėžimas",
"File not found.": "Failas nerastas.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Rinkmenos",
"Filter is now globally disabled": "Filtrai nėra leidžiami globaliai",
"Filter is now globally enabled": "Filtrai globaliai leidžiami",
@@ -377,6 +378,8 @@
"Manage Ollama Models": "Tvarkyti Ollama modelius",
"Manage Pipelines": "Tvarkyti procesus",
"March": "Kovas",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Maksimalus žetonų kiekis (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Daugiausiai trys modeliai gali būti parsisiunčiami vienu metu.",
"May": "gegužė",
diff --git a/src/lib/i18n/locales/ms-MY/translation.json b/src/lib/i18n/locales/ms-MY/translation.json
index 998f786f9c..59f04baefa 100644
--- a/src/lib/i18n/locales/ms-MY/translation.json
+++ b/src/lib/i18n/locales/ms-MY/translation.json
@@ -52,6 +52,7 @@
"alphanumeric characters and hyphens": "aksara alfanumerik dan tanda sempang",
"Already have an account?": "Telah mempunyai akaun?",
"an assistant": "seorang pembantu",
+ "An error occurred while processing files.": "",
"and": "dan",
"and create a new shared link.": "dan cipta pautan kongsi baharu",
"API Base URL": "URL Asas API",
@@ -287,6 +288,7 @@
"File": "Fail",
"File Mode": "Mod Fail",
"File not found.": "Fail tidak dijumpai",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Fail-Fail",
"Filter is now globally disabled": "Tapisan kini dilumpuhkan secara global",
"Filter is now globally enabled": "Tapisan kini dibenarkan secara global",
@@ -376,6 +378,8 @@
"Manage Ollama Models": "Urus Model Ollama",
"Manage Pipelines": "Urus 'Pipelines'",
"March": "Mac",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Token Maksimum ( num_predict )",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maksimum 3 model boleh dimuat turun serentak. Sila cuba sebentar lagi.",
"May": "Mei",
diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json
index 0a3feaffc5..5f4183235c 100644
--- a/src/lib/i18n/locales/ru-RU/translation.json
+++ b/src/lib/i18n/locales/ru-RU/translation.json
@@ -288,6 +288,7 @@
"File": "Файл",
"File Mode": "Режим файла",
"File not found.": "Файл не найден.",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "Файлы",
"Filter is now globally disabled": "Фильтр теперь отключен глобально",
"Filter is now globally enabled": "Фильтр теперь включен глобально",
@@ -377,6 +378,8 @@
"Manage Ollama Models": "Управление моделями Ollama",
"Manage Pipelines": "Управление конвейерами",
"March": "Март",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "Максимальное количество токенов (num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Максимальное количество моделей для загрузки одновременно - 3. Пожалуйста, попробуйте позже.",
"May": "Май",
diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json
index ecffab82f5..37717bfc46 100644
--- a/src/lib/i18n/locales/zh-TW/translation.json
+++ b/src/lib/i18n/locales/zh-TW/translation.json
@@ -288,6 +288,7 @@
"File": "檔案",
"File Mode": "檔案模式",
"File not found.": "找不到檔案。",
+ "File size exceeds the limit of {{size}}MB": "",
"Files": "檔案",
"Filter is now globally disabled": "篩選器現在已全域停用",
"Filter is now globally enabled": "篩選器現在已全域啟用",
@@ -377,6 +378,8 @@
"Manage Ollama Models": "管理 Ollama 模型",
"Manage Pipelines": "管理管線",
"March": "3 月",
+ "Max File Count": "",
+ "Max File Size(MB)": "",
"Max Tokens (num_predict)": "最大 token 數(num_predict)",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "最多可同時下載 3 個模型。請稍後再試。",
"May": "5 月",
From 600409682e8ef1f88aa7728a0260c29b355dd1b2 Mon Sep 17 00:00:00 2001
From: "Timothy J. Baek"
Date: Tue, 27 Aug 2024 15:30:57 +0200
Subject: [PATCH 06/12] refac: do not change default behaviour
---
backend/apps/rag/main.py | 8 ++++----
backend/config.py | 24 ++++++++++++++++--------
2 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py
index 1803ff8d4b..78e43d9e78 100644
--- a/backend/apps/rag/main.py
+++ b/backend/apps/rag/main.py
@@ -95,8 +95,8 @@ from config import (
TIKA_SERVER_URL,
RAG_TOP_K,
RAG_RELEVANCE_THRESHOLD,
- RAG_MAX_FILE_SIZE,
- RAG_MAX_FILE_COUNT,
+ RAG_FILE_MAX_SIZE,
+ RAG_FILE_MAX_COUNT,
RAG_EMBEDDING_ENGINE,
RAG_EMBEDDING_MODEL,
RAG_EMBEDDING_MODEL_AUTO_UPDATE,
@@ -145,8 +145,8 @@ app.state.config = AppConfig()
app.state.config.TOP_K = RAG_TOP_K
app.state.config.RELEVANCE_THRESHOLD = RAG_RELEVANCE_THRESHOLD
-app.state.config.MAX_FILE_SIZE = RAG_MAX_FILE_SIZE
-app.state.config.MAX_FILE_COUNT = RAG_MAX_FILE_COUNT
+app.state.config.MAX_FILE_SIZE = RAG_FILE_MAX_SIZE
+app.state.config.MAX_FILE_COUNT = RAG_FILE_MAX_COUNT
app.state.config.ENABLE_RAG_HYBRID_SEARCH = ENABLE_RAG_HYBRID_SEARCH
app.state.config.ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION = (
diff --git a/backend/config.py b/backend/config.py
index a4d5d44647..9cdcbe474e 100644
--- a/backend/config.py
+++ b/backend/config.py
@@ -1005,16 +1005,24 @@ ENABLE_RAG_HYBRID_SEARCH = PersistentConfig(
os.environ.get("ENABLE_RAG_HYBRID_SEARCH", "").lower() == "true",
)
-RAG_MAX_FILE_COUNT = PersistentConfig(
- "RAG_MAX_FILE_COUNT",
- "rag.max_file_count",
- int(os.environ.get("RAG_MAX_FILE_COUNT", "5")),
+RAG_FILE_MAX_COUNT = PersistentConfig(
+ "RAG_FILE_MAX_COUNT",
+ "rag.file.max_count",
+ (
+ int(os.environ.get("RAG_FILE_MAX_COUNT"))
+ if os.environ.get("RAG_FILE_MAX_COUNT")
+ else None
+ ),
)
-RAG_MAX_FILE_SIZE = PersistentConfig(
- "RAG_MAX_FILE_SIZE",
- "rag.max_file_size",
- int(os.environ.get("RAG_MAX_FILE_SIZE", "10")),
+RAG_FILE_MAX_SIZE = PersistentConfig(
+ "RAG_FILE_MAX_SIZE",
+ "rag.file.max_size",
+ (
+ int(os.environ.get("RAG_FILE_MAX_SIZE"))
+ if os.environ.get("RAG_FILE_MAX_SIZE")
+ else None
+ ),
)
ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION = PersistentConfig(
From 09cba5b87abd8773f5b027c91f050946ef9db5cb Mon Sep 17 00:00:00 2001
From: "Timothy J. Baek"
Date: Tue, 27 Aug 2024 15:51:40 +0200
Subject: [PATCH 07/12] refac: rm sub standard code
---
backend/apps/rag/main.py | 34 +++++---
src/lib/apis/rag/index.ts | 29 -------
.../admin/Settings/Documents.svelte | 86 +++++++++++--------
src/lib/components/chat/MessageInput.svelte | 70 ++-------------
src/lib/components/workspace/Documents.svelte | 36 ++------
5 files changed, 86 insertions(+), 169 deletions(-)
diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py
index 78e43d9e78..15eff3d848 100644
--- a/backend/apps/rag/main.py
+++ b/backend/apps/rag/main.py
@@ -145,8 +145,8 @@ app.state.config = AppConfig()
app.state.config.TOP_K = RAG_TOP_K
app.state.config.RELEVANCE_THRESHOLD = RAG_RELEVANCE_THRESHOLD
-app.state.config.MAX_FILE_SIZE = RAG_FILE_MAX_SIZE
-app.state.config.MAX_FILE_COUNT = RAG_FILE_MAX_COUNT
+app.state.config.FILE_MAX_SIZE = RAG_FILE_MAX_SIZE
+app.state.config.FILE_MAX_COUNT = RAG_FILE_MAX_COUNT
app.state.config.ENABLE_RAG_HYBRID_SEARCH = ENABLE_RAG_HYBRID_SEARCH
app.state.config.ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION = (
@@ -397,6 +397,10 @@ async def get_rag_config(user=Depends(get_admin_user)):
return {
"status": True,
"pdf_extract_images": app.state.config.PDF_EXTRACT_IMAGES,
+ "file": {
+ "max_size": app.state.config.FILE_MAX_SIZE,
+ "max_count": app.state.config.FILE_MAX_COUNT,
+ },
"content_extraction": {
"engine": app.state.config.CONTENT_EXTRACTION_ENGINE,
"tika_server_url": app.state.config.TIKA_SERVER_URL,
@@ -522,6 +526,10 @@ async def update_rag_config(form_data: ConfigUpdateForm, user=Depends(get_admin_
return {
"status": True,
+ "file": {
+ "max_size": app.state.config.FILE_MAX_SIZE,
+ "max_count": app.state.config.FILE_MAX_COUNT,
+ },
"pdf_extract_images": app.state.config.PDF_EXTRACT_IMAGES,
"content_extraction": {
"engine": app.state.config.CONTENT_EXTRACTION_ENGINE,
@@ -571,8 +579,6 @@ async def get_query_settings(user=Depends(get_admin_user)):
"template": app.state.config.RAG_TEMPLATE,
"k": app.state.config.TOP_K,
"r": app.state.config.RELEVANCE_THRESHOLD,
- "max_file_size": app.state.config.MAX_FILE_SIZE,
- "max_file_count": app.state.config.MAX_FILE_COUNT,
"hybrid": app.state.config.ENABLE_RAG_HYBRID_SEARCH,
}
@@ -580,16 +586,16 @@ async def get_query_settings(user=Depends(get_admin_user)):
@app.get("/file/limit/settings")
async def get_query_settings(user=Depends(get_verified_user)):
return {
- "max_file_size": app.state.config.MAX_FILE_SIZE,
- "max_file_count": app.state.config.MAX_FILE_COUNT,
+ "FILE_MAX_SIZE": app.state.config.FILE_MAX_SIZE,
+ "FILE_MAX_COUNT": app.state.config.FILE_MAX_COUNT,
}
class QuerySettingsForm(BaseModel):
k: Optional[int] = None
r: Optional[float] = None
- max_file_size: Optional[int] = None
- max_file_count: Optional[int] = None
+ FILE_MAX_SIZE: Optional[int] = None
+ FILE_MAX_COUNT: Optional[int] = None
template: Optional[str] = None
hybrid: Optional[bool] = None
@@ -606,11 +612,11 @@ async def update_query_settings(
app.state.config.ENABLE_RAG_HYBRID_SEARCH = (
form_data.hybrid if form_data.hybrid else False
)
- app.state.config.MAX_FILE_SIZE = (
- form_data.max_file_size if form_data.max_file_size else 10
+ app.state.config.FILE_MAX_SIZE = (
+ form_data.FILE_MAX_SIZE if form_data.FILE_MAX_SIZE else 10
)
- app.state.config.MAX_FILE_COUNT = (
- form_data.max_file_count if form_data.max_file_count else 5
+ app.state.config.FILE_MAX_COUNT = (
+ form_data.FILE_MAX_COUNT if form_data.FILE_MAX_COUNT else 5
)
return {
@@ -618,8 +624,8 @@ async def update_query_settings(
"template": app.state.config.RAG_TEMPLATE,
"k": app.state.config.TOP_K,
"r": app.state.config.RELEVANCE_THRESHOLD,
- "max_file_size": app.state.config.MAX_FILE_SIZE,
- "max_file_count": app.state.config.MAX_FILE_COUNT,
+ "FILE_MAX_SIZE": app.state.config.FILE_MAX_SIZE,
+ "FILE_MAX_COUNT": app.state.config.FILE_MAX_COUNT,
"hybrid": app.state.config.ENABLE_RAG_HYBRID_SEARCH,
}
diff --git a/src/lib/apis/rag/index.ts b/src/lib/apis/rag/index.ts
index 153d9ab993..5c0a47b357 100644
--- a/src/lib/apis/rag/index.ts
+++ b/src/lib/apis/rag/index.ts
@@ -134,38 +134,9 @@ export const getQuerySettings = async (token: string) => {
return res;
};
-export const getFileLimitSettings = async (token: string) => {
- let error = null;
-
- const res = await fetch(`${RAG_API_BASE_URL}/file/limit/settings`, {
- method: 'GET',
- headers: {
- 'Content-Type': 'application/json',
- Authorization: `Bearer ${token}`
- }
- })
- .then(async (res) => {
- if (!res.ok) throw await res.json();
- return res.json();
- })
- .catch((err) => {
- console.log(err);
- error = err.detail;
- return null;
- });
-
- if (error) {
- throw error;
- }
-
- return res;
-};
-
type QuerySettings = {
k: number | null;
r: number | null;
- max_file_size: number | null;
- max_file_count: number | null;
template: string | null;
};
diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte
index 57ddffcb11..e8c7f1f7f2 100644
--- a/src/lib/components/admin/Settings/Documents.svelte
+++ b/src/lib/components/admin/Settings/Documents.svelte
@@ -37,6 +37,9 @@
let embeddingModel = '';
let rerankingModel = '';
+ let fileMaxSize = null;
+ let fileMaxCount = null;
+
let contentExtractionEngine = 'default';
let tikaServerUrl = '';
let showTikaServerUrl = false;
@@ -53,8 +56,6 @@
template: '',
r: 0.0,
k: 4,
- max_file_size: 10,
- max_file_count: 5,
hybrid: false
};
@@ -220,7 +221,6 @@
await setRerankingConfig();
querySettings = await getQuerySettings(localStorage.token);
-
const res = await getRAGConfig(localStorage.token);
if (res) {
@@ -232,6 +232,9 @@
contentExtractionEngine = res.content_extraction.engine;
tikaServerUrl = res.content_extraction.tika_server_url;
showTikaServerUrl = contentExtractionEngine === 'tika';
+
+ fileMaxSize = res.file.file_max_size;
+ fileMaxCount = res.file.file_max_count;
}
});
@@ -388,41 +391,6 @@
{/if}
-