refactor: 移除对.doc文件格式的支持
This commit is contained in:
parent
fbf4ec8cce
commit
98fdce0e79
@ -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",
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
@ -186,7 +186,6 @@ const DEFAULT_SUPPORTED_TYPES = [
|
|||||||
'.jpeg',
|
'.jpeg',
|
||||||
'.md',
|
'.md',
|
||||||
'.docx',
|
'.docx',
|
||||||
'.doc',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const normalizeExtensions = (extensions) => {
|
const normalizeExtensions = (extensions) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user