refac
This commit is contained in:
1 parent
a8a9b35153
commit
82716f3789
1 file changed
+2
-1
@@ -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 !== '');
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user