mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
commit
2b5c015bcb
@ -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 !== '');
|
||||||
|
|
||||||
|
@ -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')) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user