mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-25 05:00:55 +03:00
Merge pull request #624 from FlowiseAI/bugfix/EscapeInTemplate
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
|
||||
}
|
||||
|
||||
const replaceChar: string[] = ['{', '}']
|
||||
for (const char of replaceChar) finalText = finalText.replaceAll(char, '')
|
||||
|
||||
if (finalText) systemMessage = `${systemMessage}\nThe AI has the following context:\n${finalText}`
|
||||
|
||||
const obj: any = {
|
||||
|
||||
Reference in New Issue
Block a user