mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 12:39:14 +08:00
fix: tran list issue (#7009)
Co-authored-by: libing <libing@healink.cn>
This commit is contained in:
parent
81b11c08d0
commit
d7e057be44
@ -63,7 +63,7 @@ class FixedRecursiveCharacterTextSplitter(EnhanceRecursiveCharacterTextSplitter)
|
|||||||
if self._fixed_separator:
|
if self._fixed_separator:
|
||||||
chunks = text.split(self._fixed_separator)
|
chunks = text.split(self._fixed_separator)
|
||||||
else:
|
else:
|
||||||
chunks = list(text)
|
chunks = [text]
|
||||||
|
|
||||||
final_chunks = []
|
final_chunks = []
|
||||||
for chunk in chunks:
|
for chunk in chunks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user