mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
commit
2b5c015bcb
2 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue