expand text file supported file types

This commit is contained in:
Henry
2023-10-31 16:32:33 +00:00
parent 06552416bb
commit 039d8d26be
5 changed files with 46 additions and 11 deletions
@@ -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',
@@ -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
}
]