mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
Bugfix/Escape JSON in Prompt Message (#3901)
add fix to only get variables when there is no colon
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { transformBracesWithColon } from '../../../src'
|
||||
import { INode, INodeData, INodeParams, PromptRetriever, PromptRetrieverInput } from '../../../src/Interface'
|
||||
|
||||
class PromptRetriever_Retrievers implements INode {
|
||||
@@ -48,7 +49,8 @@ class PromptRetriever_Retrievers implements INode {
|
||||
async init(nodeData: INodeData): Promise<any> {
|
||||
const name = nodeData.inputs?.name as string
|
||||
const description = nodeData.inputs?.description as string
|
||||
const systemMessage = nodeData.inputs?.systemMessage as string
|
||||
let systemMessage = nodeData.inputs?.systemMessage as string
|
||||
systemMessage = transformBracesWithColon(systemMessage)
|
||||
|
||||
const obj = {
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user