mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
expand text file supported file types
This commit is contained in:
@@ -19,7 +19,7 @@ class Text_DocumentLoaders implements INode {
|
||||
constructor() {
|
||||
this.label = 'Text File'
|
||||
this.name = 'textFile'
|
||||
this.version = 2.0
|
||||
this.version = 3.0
|
||||
this.type = 'Document'
|
||||
this.icon = 'textFile.svg'
|
||||
this.category = 'Document Loaders'
|
||||
@@ -30,7 +30,8 @@ class Text_DocumentLoaders implements INode {
|
||||
label: 'Txt File',
|
||||
name: 'txtFile',
|
||||
type: 'file',
|
||||
fileType: '.txt'
|
||||
fileType:
|
||||
'.txt, .html, .aspx, .asp, .cpp, .c, .cs, .css, .go, .h, .java, .js, .less, .ts, .php, .proto, .python, .py, .rst, .ruby, .rb, .rs, .scala, .sc, .scss, .sol, .sql, .swift, .markdown, .md, .tex, .ltx, .vb, .xml'
|
||||
},
|
||||
{
|
||||
label: 'Text Splitter',
|
||||
|
||||
+1
@@ -43,6 +43,7 @@ class RecursiveCharacterTextSplitter_TextSplitters implements INode {
|
||||
rows: 4,
|
||||
description: 'Array of custom separators to determine when to split the text, will override the default separators',
|
||||
placeholder: `["|", "##", ">", "-"]`,
|
||||
additionalParams: true,
|
||||
optional: true
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user