refactor: 移除对.doc文件格式的支持

This commit is contained in:
Wenjie Zhang 2025-12-18 11:27:21 +08:00
parent fbf4ec8cce
commit 98fdce0e79
3 changed files with 0 additions and 3 deletions

View File

@ -25,7 +25,6 @@ knowledge = APIRouter(prefix="/knowledge", tags=["knowledge"])
media_types = { media_types = {
".pdf": "application/pdf", ".pdf": "application/pdf",
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
".doc": "application/msword",
".txt": "text/plain", ".txt": "text/plain",
".md": "text/markdown", ".md": "text/markdown",
".json": "application/json", ".json": "application/json",

View File

@ -24,7 +24,6 @@ from src.utils import hashstr, logger
SUPPORTED_FILE_EXTENSIONS: tuple[str, ...] = ( SUPPORTED_FILE_EXTENSIONS: tuple[str, ...] = (
".txt", ".txt",
".md", ".md",
".doc",
".docx", ".docx",
".html", ".html",
".htm", ".htm",

View File

@ -186,7 +186,6 @@ const DEFAULT_SUPPORTED_TYPES = [
'.jpeg', '.jpeg',
'.md', '.md',
'.docx', '.docx',
'.doc',
]; ];
const normalizeExtensions = (extensions) => { const normalizeExtensions = (extensions) => {