mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
91917b2395
commit
ecad20b77f
1 changed files with 3 additions and 4 deletions
|
|
@ -281,7 +281,7 @@
|
||||||
? JSON.parse(RAGConfig.EXTERNAL_DOCUMENT_LOADER_HEADERS)
|
? JSON.parse(RAGConfig.EXTERNAL_DOCUMENT_LOADER_HEADERS)
|
||||||
: {},
|
: {},
|
||||||
CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES:
|
CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES:
|
||||||
RAGConfig.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES.trim() === ''
|
RAGConfig.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES === null
|
||||||
? undefined
|
? undefined
|
||||||
: RAGConfig.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES.split(',')
|
: RAGConfig.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES.split(',')
|
||||||
.map((mimeType: string) => mimeType.trim())
|
.map((mimeType: string) => mimeType.trim())
|
||||||
|
|
@ -342,9 +342,8 @@
|
||||||
: config.EXTERNAL_DOCUMENT_LOADER_HEADERS;
|
: config.EXTERNAL_DOCUMENT_LOADER_HEADERS;
|
||||||
|
|
||||||
config.MINERU_FILE_EXTENSIONS = (config?.MINERU_FILE_EXTENSIONS ?? ['pdf']).join(', ');
|
config.MINERU_FILE_EXTENSIONS = (config?.MINERU_FILE_EXTENSIONS ?? ['pdf']).join(', ');
|
||||||
config.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES = (
|
config.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES =
|
||||||
config?.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES ?? []
|
config?.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES?.join(', ') ?? null;
|
||||||
).join(', ');
|
|
||||||
config.RAG_TOKENIZER_MODEL = config?.RAG_TOKENIZER_MODEL ?? '';
|
config.RAG_TOKENIZER_MODEL = config?.RAG_TOKENIZER_MODEL ?? '';
|
||||||
|
|
||||||
RAGConfig = config;
|
RAGConfig = config;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue