Merge pull request #14093 from open-webui/main

dev
This commit is contained in:
Tim Jaeryang Baek 2025-05-20 19:48:26 +04:00 committed by GitHub
commit 2b5c015bcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -170,7 +170,8 @@
await embeddingModelUpdateHandler(); await embeddingModelUpdateHandler();
} }
RAGConfig.ALLOWED_FILE_EXTENSIONS = RAGConfig.ALLOWED_FILE_EXTENSIONS.split(',') RAGConfig.ALLOWED_FILE_EXTENSIONS = (RAGConfig?.ALLOWED_FILE_EXTENSIONS ?? '')
.split(',')
.map((ext) => ext.trim()) .map((ext) => ext.trim())
.filter((ext) => ext !== ''); .filter((ext) => ext !== '');

View File

@ -25,7 +25,7 @@
(item?.name && item?.name.toLowerCase().endsWith('.pdf')); (item?.name && item?.name.toLowerCase().endsWith('.pdf'));
$: isAudio = $: isAudio =
item?.meta?.content_type.startsWith('audio/') || (item?.meta?.content_type ?? '').startsWith('audio/') ||
(item?.name && item?.name.toLowerCase().endsWith('.mp3')) || (item?.name && item?.name.toLowerCase().endsWith('.mp3')) ||
(item?.name && item?.name.toLowerCase().endsWith('.wav')) || (item?.name && item?.name.toLowerCase().endsWith('.wav')) ||
(item?.name && item?.name.toLowerCase().endsWith('.ogg')) || (item?.name && item?.name.toLowerCase().endsWith('.ogg')) ||