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
echo This single commit has came from a merged commit. We will ignore it. This case is handled in autoSyncMergedPullRequest workflow for merge commits comming from merged pull requests only! Beware, the regular merge commits are not handled by any workflow for the moment.
15
+
autoSyncSingleCommit:
16
+
if: github.event.commits[1] == null
17
+
runs-on: ubuntu-latest
18
+
steps:
19
+
- uses: actions/checkout@v3
20
+
- name: autoSyncSingleCommit
21
+
env:
22
+
GITHUB_CONTEXT: ${{ toJSON(github) }}
23
+
run: |
24
+
echo Autosync a single commit with id: ${{ github.sha }} from openSource main branch towards cloud hosted version.
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.`
13
12
constinputKey='input'
@@ -27,7 +26,7 @@ class ConversationChain_Chains implements INode {
27
26
constructor(fields?: {sessionId?: string}){
28
27
this.label='Conversation Chain'
29
28
this.name='conversationChain'
30
-
this.version=1.0
29
+
this.version=2.0
31
30
this.type='ConversationChain'
32
31
this.icon='conv.svg'
33
32
this.category='Chains'
@@ -44,6 +43,14 @@ class ConversationChain_Chains implements INode {
44
43
name: 'memory',
45
44
type: 'BaseMemory'
46
45
},
46
+
{
47
+
label: 'Chat Prompt Template',
48
+
name: 'chatPromptTemplate',
49
+
type: 'ChatPromptTemplate',
50
+
description: 'Override existing prompt with Chat Prompt Template. Human Message must includes {input} variable',
51
+
optional: true
52
+
},
53
+
/* Deprecated
47
54
{
48
55
label: 'Document',
49
56
name: 'document',
@@ -52,15 +59,17 @@ class ConversationChain_Chains implements INode {
52
59
'Include whole document into the context window, if you get maximum context length error, please use model with higher context window like Claude 100k, or gpt4 32k',
53
60
optional: true,
54
61
list: true
55
-
},
62
+
},*/
56
63
{
57
64
label: 'System Message',
58
65
name: 'systemMessagePrompt',
59
66
type: 'string',
60
67
rows: 4,
68
+
description: 'If Chat Prompt Template is provided, this will be ignored',
61
69
additionalParams: true,
62
70
optional: true,
63
-
placeholder: 'You are a helpful assistant that write codes'
71
+
default: systemMessage,
72
+
placeholder: systemMessage
64
73
}
65
74
]
66
75
this.sessionId=fields?.sessionId
@@ -76,15 +85,21 @@ class ConversationChain_Chains implements INode {
0 commit comments