You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letsystemMessage=`The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.`
12
14
constinputKey='input'
@@ -26,7 +28,7 @@ class ConversationChain_Chains implements INode {
26
28
constructor(fields?: {sessionId?: string}){
27
29
this.label='Conversation Chain'
28
30
this.name='conversationChain'
29
-
this.version=2.0
31
+
this.version=3.0
30
32
this.type='ConversationChain'
31
33
this.icon='conv.svg'
32
34
this.category='Chains'
@@ -60,6 +62,14 @@ class ConversationChain_Chains implements INode {
60
62
optional: true,
61
63
list: true
62
64
},*/
65
+
{
66
+
label: 'Input Moderation',
67
+
description: 'Detect text that could generate harmful output and prevent it from being sent to the language model',
68
+
name: 'inputModeration',
69
+
type: 'Moderation',
70
+
optional: true,
71
+
list: true
72
+
},
63
73
{
64
74
label: 'System Message',
65
75
name: 'systemMessagePrompt',
@@ -80,8 +90,21 @@ class ConversationChain_Chains implements INode {
0 commit comments