Skip to content

Commit 84150a9

Browse files
authored
fix: update workflow templates (#470)
1 parent 0385727 commit 84150a9

5 files changed

Lines changed: 117 additions & 61 deletions

File tree

packages/infrastructure/src/static-data/workflow/templates/CQ.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"key": "userChatInput",
4949
"label": "core.module.input.label.user question",
5050
"valueType": "string",
51-
"type": "FlowNodeOutputTypeEnum.static"
51+
"type": "static"
5252
}
5353
]
5454
},
@@ -157,15 +157,15 @@
157157
"label": "core.module.output.label.New context",
158158
"description": "core.module.output.description.New context",
159159
"valueType": "chatHistory",
160-
"type": "FlowNodeOutputTypeEnum.static"
160+
"type": "static"
161161
},
162162
{
163163
"id": "answerText",
164164
"key": "answerText",
165165
"label": "core.module.output.label.Ai response content",
166166
"description": "core.module.output.description.Ai response content",
167167
"valueType": "string",
168-
"type": "FlowNodeOutputTypeEnum.static"
168+
"type": "static"
169169
}
170170
]
171171
},
@@ -246,7 +246,7 @@
246246
"key": "cqResult",
247247
"label": "分类结果",
248248
"valueType": "string",
249-
"type": "FlowNodeOutputTypeEnum.static"
249+
"type": "static"
250250
}
251251
]
252252
},
@@ -361,7 +361,7 @@
361361
"key": "quoteQA",
362362
"label": "core.module.Dataset quote.label",
363363
"description": "特殊数组格式,搜索结果为空时,返回空数组。",
364-
"type": "FlowNodeOutputTypeEnum.static",
364+
"type": "static",
365365
"valueType": "datasetQuote"
366366
}
367367
]

packages/infrastructure/src/static-data/workflow/templates/githubIssue.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
{
4141
"key": "questionGuide",
42-
"valueType": "hidden",
42+
"valueType": "any",
4343
"renderTypeList": ["hidden"],
4444
"label": "core.app.Question Guide",
4545
"value": {

packages/infrastructure/src/static-data/workflow/templates/google.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@
176176
],
177177
"outputs": [
178178
{
179-
"id": "NodeOutputKeyEnum.answerText",
180-
"key": "NodeOutputKeyEnum.answerText",
179+
"id": "answerText",
180+
"key": "answerText",
181181
"label": "core.module.output.label.Ai response content",
182182
"description": "core.module.output.description.Ai response content",
183183
"valueType": "string",
184-
"type": "FlowNodeOutputTypeEnum.static"
184+
"type": "static"
185185
}
186186
]
187187
},

packages/infrastructure/src/static-data/workflow/templates/longTranslate.json

Lines changed: 54 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,46 +2050,60 @@
20502050
"label": "源语言",
20512051
"type": "select",
20522052
"required": true,
2053+
"description": "",
20532054
"maxLen": 50,
20542055
"enums": [
20552056
{
2056-
"value": "简体中文"
2057+
"value": "简体中文",
2058+
"label": "简体中文"
20572059
},
20582060
{
2059-
"value": "繁體中文"
2061+
"value": "繁體中文",
2062+
"label": "繁體中文"
20602063
},
20612064
{
2062-
"value": "English"
2065+
"value": "English",
2066+
"label": "English"
20632067
},
20642068
{
2065-
"value": "Español"
2069+
"value": "Español",
2070+
"label": "Español"
20662071
},
20672072
{
2068-
"value": "Français"
2073+
"value": "Français",
2074+
"label": "Français"
20692075
},
20702076
{
2071-
"value": "Deutsch"
2077+
"value": "Deutsch",
2078+
"label": "Deutsch"
20722079
},
20732080
{
2074-
"value": "Italiano"
2081+
"value": "Italiano",
2082+
"label": "Italiano"
20752083
},
20762084
{
2077-
"value": "日本語"
2085+
"value": "日本語",
2086+
"label": "日本語"
20782087
},
20792088
{
2080-
"value": "한국어"
2089+
"value": "한국어",
2090+
"label": "한국어"
20812091
},
20822092
{
2083-
"value": "Русский"
2093+
"value": "Русский",
2094+
"label": "Русский"
20842095
},
20852096
{
2086-
"value": "العربية"
2097+
"value": "العربية",
2098+
"label": "العربية"
20872099
},
20882100
{
2089-
"value": "Bahasa Indonesia"
2101+
"value": "Bahasa Indonesia",
2102+
"label": "Bahasa Indonesia"
20902103
},
20912104
{
2092-
"value": "Polski"
2105+
"value": "Polski",
2106+
"label": "Polski"
20932107
}
20942108
],
20952109
"icon": "core/app/variable/select"
@@ -2100,46 +2114,60 @@
21002114
"label": "目标语言",
21012115
"type": "select",
21022116
"required": true,
2117+
"description": "",
21032118
"maxLen": 50,
21042119
"enums": [
21052120
{
2106-
"value": "简体中文"
2121+
"value": "简体中文",
2122+
"label": "简体中文"
21072123
},
21082124
{
2109-
"value": "繁體中文"
2125+
"value": "繁體中文",
2126+
"label": "繁體中文"
21102127
},
21112128
{
2112-
"value": "English"
2129+
"value": "English",
2130+
"label": "English"
21132131
},
21142132
{
2115-
"value": "Español"
2133+
"value": "Español",
2134+
"label": "Español"
21162135
},
21172136
{
2118-
"value": "Français"
2137+
"value": "Français",
2138+
"label": "Français"
21192139
},
21202140
{
2121-
"value": "Deutsch"
2141+
"value": "Deutsch",
2142+
"label": "Deutsch"
21222143
},
21232144
{
2124-
"value": "Italiano"
2145+
"value": "Italiano",
2146+
"label": "Italiano"
21252147
},
21262148
{
2127-
"value": "日本語"
2149+
"value": "日本語",
2150+
"label": "日本語"
21282151
},
21292152
{
2130-
"value": "한국어"
2153+
"value": "한국어",
2154+
"label": "한국어"
21312155
},
21322156
{
2133-
"value": "Русский"
2157+
"value": "Русский",
2158+
"label": "Русский"
21342159
},
21352160
{
2136-
"value": "العربية"
2161+
"value": "العربية",
2162+
"label": "العربية"
21372163
},
21382164
{
2139-
"value": "Bahasa Indonesia"
2165+
"value": "Bahasa Indonesia",
2166+
"label": "Bahasa Indonesia"
21402167
},
21412168
{
2142-
"value": "Polski"
2169+
"value": "Polski",
2170+
"label": "Polski"
21432171
}
21442172
],
21452173
"icon": "core/app/variable/select"

packages/infrastructure/src/static-data/workflow/templates/srt-translate.json

Lines changed: 54 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,46 +1828,60 @@
18281828
"label": "源语言",
18291829
"type": "select",
18301830
"required": true,
1831+
"description": "",
18311832
"maxLen": 50,
18321833
"enums": [
18331834
{
1834-
"value": "简体中文"
1835+
"value": "简体中文",
1836+
"label": "简体中文"
18351837
},
18361838
{
1837-
"value": "繁體中文"
1839+
"value": "繁體中文",
1840+
"label": "繁體中文"
18381841
},
18391842
{
1840-
"value": "English"
1843+
"value": "English",
1844+
"label": "English"
18411845
},
18421846
{
1843-
"value": "Español"
1847+
"value": "Español",
1848+
"label": "Español"
18441849
},
18451850
{
1846-
"value": "Français"
1851+
"value": "Français",
1852+
"label": "Français"
18471853
},
18481854
{
1849-
"value": "Deutsch"
1855+
"value": "Deutsch",
1856+
"label": "Deutsch"
18501857
},
18511858
{
1852-
"value": "Italiano"
1859+
"value": "Italiano",
1860+
"label": "Italiano"
18531861
},
18541862
{
1855-
"value": "日本語"
1863+
"value": "日本語",
1864+
"label": "日本語"
18561865
},
18571866
{
1858-
"value": "한국어"
1867+
"value": "한국어",
1868+
"label": "한국어"
18591869
},
18601870
{
1861-
"value": "Русский"
1871+
"value": "Русский",
1872+
"label": "Русский"
18621873
},
18631874
{
1864-
"value": "العربية"
1875+
"value": "العربية",
1876+
"label": "العربية"
18651877
},
18661878
{
1867-
"value": "Bahasa Indonesia"
1879+
"value": "Bahasa Indonesia",
1880+
"label": "Bahasa Indonesia"
18681881
},
18691882
{
1870-
"value": "Polski"
1883+
"value": "Polski",
1884+
"label": "Polski"
18711885
}
18721886
],
18731887
"icon": "core/app/variable/select"
@@ -1878,46 +1892,60 @@
18781892
"label": "目标语言",
18791893
"type": "select",
18801894
"required": true,
1895+
"description": "",
18811896
"maxLen": 50,
18821897
"enums": [
18831898
{
1884-
"value": "简体中文"
1899+
"value": "简体中文",
1900+
"label": "简体中文"
18851901
},
18861902
{
1887-
"value": "繁體中文"
1903+
"value": "繁體中文",
1904+
"label": "繁體中文"
18881905
},
18891906
{
1890-
"value": "English"
1907+
"value": "English",
1908+
"label": "English"
18911909
},
18921910
{
1893-
"value": "Español"
1911+
"value": "Español",
1912+
"label": "Español"
18941913
},
18951914
{
1896-
"value": "Français"
1915+
"value": "Français",
1916+
"label": "Français"
18971917
},
18981918
{
1899-
"value": "Deutsch"
1919+
"value": "Deutsch",
1920+
"label": "Deutsch"
19001921
},
19011922
{
1902-
"value": "Italiano"
1923+
"value": "Italiano",
1924+
"label": "Italiano"
19031925
},
19041926
{
1905-
"value": "日本語"
1927+
"value": "日本語",
1928+
"label": "日本語"
19061929
},
19071930
{
1908-
"value": "한국어"
1931+
"value": "한국어",
1932+
"label": "한국어"
19091933
},
19101934
{
1911-
"value": "Русский"
1935+
"value": "Русский",
1936+
"label": "Русский"
19121937
},
19131938
{
1914-
"value": "العربية"
1939+
"value": "العربية",
1940+
"label": "العربية"
19151941
},
19161942
{
1917-
"value": "Bahasa Indonesia"
1943+
"value": "Bahasa Indonesia",
1944+
"label": "Bahasa Indonesia"
19181945
},
19191946
{
1920-
"value": "Polski"
1947+
"value": "Polski",
1948+
"label": "Polski"
19211949
}
19221950
],
19231951
"icon": "core/app/variable/select"

0 commit comments

Comments
 (0)