Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: correct typos (#5510)
kurokoboc5d64baba4ef
diff --git a/api/controllers/console/datasets/file.py b/api/controllers/console/datasets/file.pyindex 23ab2247314..c13bd45abb0 100644--- a/api/controllers/console/datasets/file.py+++ b/api/controllers/console/datasets/file.py@@ -14,7 +14,7 @@ from controllers.console.setup import setup_requiredfrom controllers.console.wraps import account_initialization_required, cloud_edition_billing_resource_checkfrom fields.file_fields import file_fields, upload_config_fieldsfrom libs.login import login_required-from services.file_service import ALLOWED_EXTENSIONS, UNSTRUSTURED_ALLOWED_EXTENSIONS, FileService+from services.file_service import ALLOWED_EXTENSIONS, UNSTRUCTURED_ALLOWED_EXTENSIONS, FileServicePREVIEW_WORDS_LIMIT = 3000@@ -77,7 +77,7 @@ class FileSupportTypeApi(Resource):@account_initialization_requireddef get(self):etl_type = current_app.config['ETL_TYPE']- allowed_extensions = UNSTRUSTURED_ALLOWED_EXTENSIONS if etl_type == 'Unstructured' else ALLOWED_EXTENSIONS+ allowed_extensions = UNSTRUCTURED_ALLOWED_EXTENSIONS if etl_type == 'Unstructured' else ALLOWED_EXTENSIONSreturn {'allowed_extensions': allowed_extensions}diff --git a/api/services/file_service.py b/api/services/file_service.pyindex aad477f8a01..6c308a09df6 100644--- a/api/services/file_service.py+++ b/api/services/file_service.py@@ -21,7 +21,7 @@ IMAGE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'webp', 'gif', 'svg']IMAGE_EXTENSIONS.extend([ext.upper() for ext in IMAGE_EXTENSIONS])ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm', 'xlsx', 'xls', 'docx', 'csv']-UNSTRUSTURED_ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm', 'xlsx', 'xls',+UNSTRUCTURED_ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm', 'xlsx', 'xls','docx', 'csv', 'eml', 'msg', 'pptx', 'ppt', 'xml', 'epub']PREVIEW_WORDS_LIMIT = 3000@@ -36,7 +36,7 @@ class FileService:if len(filename) > 200:filename = filename.split('.')[0][:200] + '.' + extensionetl_type = current_app.config['ETL_TYPE']- allowed_extensions = UNSTRUSTURED_ALLOWED_EXTENSIONS + IMAGE_EXTENSIONS if etl_type == 'Unstructured' \+ allowed_extensions = UNSTRUCTURED_ALLOWED_EXTENSIONS + IMAGE_EXTENSIONS if etl_type == 'Unstructured' \else ALLOWED_EXTENSIONS + IMAGE_EXTENSIONSif extension.lower() not in allowed_extensions:raise UnsupportedFileTypeError()@@ -139,7 +139,7 @@ class FileService:# extract text from fileextension = upload_file.extensionetl_type = current_app.config['ETL_TYPE']- allowed_extensions = UNSTRUSTURED_ALLOWED_EXTENSIONS if etl_type == 'Unstructured' else ALLOWED_EXTENSIONS+ allowed_extensions = UNSTRUCTURED_ALLOWED_EXTENSIONS if etl_type == 'Unstructured' else ALLOWED_EXTENSIONSif extension.lower() not in allowed_extensions:raise UnsupportedFileTypeError()