mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
remove curly bracket in loaded document text
This commit is contained in:
@@ -77,6 +77,9 @@ class ConversationChain_Chains implements INode {
|
|||||||
finalText += finalDocs[i].pageContent
|
finalText += finalDocs[i].pageContent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const replaceChar: string[] = ['{', '}']
|
||||||
|
for (const char of replaceChar) finalText = finalText.replaceAll(char, '')
|
||||||
|
|
||||||
if (finalText) systemMessage = `${systemMessage}\nThe AI has the following context:\n${finalText}`
|
if (finalText) systemMessage = `${systemMessage}\nThe AI has the following context:\n${finalText}`
|
||||||
|
|
||||||
const obj: any = {
|
const obj: any = {
|
||||||
|
|||||||
Reference in New Issue
Block a user