refactor: 移除对.doc文件格式的支持
This commit is contained in:
parent
fbf4ec8cce
commit
98fdce0e79
@ -25,7 +25,6 @@ knowledge = APIRouter(prefix="/knowledge", tags=["knowledge"])
|
||||
media_types = {
|
||||
".pdf": "application/pdf",
|
||||
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||
".doc": "application/msword",
|
||||
".txt": "text/plain",
|
||||
".md": "text/markdown",
|
||||
".json": "application/json",
|
||||
|
||||
@ -24,7 +24,6 @@ from src.utils import hashstr, logger
|
||||
SUPPORTED_FILE_EXTENSIONS: tuple[str, ...] = (
|
||||
".txt",
|
||||
".md",
|
||||
".doc",
|
||||
".docx",
|
||||
".html",
|
||||
".htm",
|
||||
|
||||
@ -186,7 +186,6 @@ const DEFAULT_SUPPORTED_TYPES = [
|
||||
'.jpeg',
|
||||
'.md',
|
||||
'.docx',
|
||||
'.doc',
|
||||
];
|
||||
|
||||
const normalizeExtensions = (extensions) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user