You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

workflow.ts 36KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001
  1. const translation = {
  2. common: {
  3. undo: '復原',
  4. redo: '重做',
  5. editing: '編輯中',
  6. autoSaved: '自動保存',
  7. unpublished: '未發佈',
  8. published: '已發佈',
  9. publish: '發佈',
  10. update: '更新',
  11. run: '運行',
  12. running: '運行中',
  13. inRunMode: '在運行模式中',
  14. inPreview: '預覽中',
  15. inPreviewMode: '預覽中',
  16. preview: '預覽',
  17. viewRunHistory: '查看運行歷史',
  18. runHistory: '運行歷史',
  19. goBackToEdit: '返回編輯模式',
  20. conversationLog: '對話記錄',
  21. features: '功能',
  22. debugAndPreview: '預覽',
  23. restart: '重新開始',
  24. currentDraft: '當前草稿',
  25. currentDraftUnpublished: '當前草稿未發佈',
  26. latestPublished: '最新發佈',
  27. publishedAt: '發佈於',
  28. restore: '恢復',
  29. runApp: '運行',
  30. batchRunApp: '批量運行',
  31. accessAPIReference: '訪問 API',
  32. embedIntoSite: '嵌入網站',
  33. addTitle: '添加標題...',
  34. addDescription: '添加描述...',
  35. noVar: '沒有變量',
  36. variableNamePlaceholder: '變量名',
  37. searchVar: '搜索變量',
  38. setVarValuePlaceholder: '設置變量值',
  39. needConnectTip: '此節點尚未連接到其他節點',
  40. maxTreeDepth: '每個分支最大限制 {{depth}} 個節點',
  41. needEndNode: '必須添加結束節點',
  42. needAnswerNode: '必須添加直接回覆節點',
  43. workflowProcess: '工作流',
  44. notRunning: '尚未運行',
  45. previewPlaceholder: '在下面的框中輸入內容開始調試聊天機器人',
  46. effectVarConfirm: {
  47. title: '移除變量',
  48. content: '該變量在其他節點中使用。您是否仍要刪除它?',
  49. },
  50. insertVarTip: '按 \'/\' 鍵快速插入',
  51. processData: '數據處理',
  52. input: '輸入',
  53. output: '輸出',
  54. jinjaEditorPlaceholder: '輸入“/”或“{”插入變量',
  55. viewOnly: '只讀',
  56. showRunHistory: '顯示運行歷史',
  57. enableJinja: '開啟支持 Jinja 模板',
  58. learnMore: '了解更多',
  59. copy: '拷貝',
  60. duplicate: '複製',
  61. addBlock: '添加節點',
  62. pasteHere: '粘貼到這裡',
  63. pointerMode: '指針模式',
  64. handMode: '手模式',
  65. model: '模型',
  66. workflowAsTool: '發佈為工具',
  67. configureRequired: '需要進行配置',
  68. configure: '配置',
  69. manageInTools: '訪問工具頁',
  70. workflowAsToolTip: '工作流更新後需要重新配置工具參數',
  71. viewDetailInTracingPanel: '查看詳細信息',
  72. importDSL: '導入 DSL',
  73. backupCurrentDraft: 'Backup Current Draft',
  74. overwriteAndImport: '覆蓋和導入',
  75. importSuccess: '導入成功',
  76. chooseDSL: '選擇 DSL(yml)檔',
  77. syncingData: '同步數據,只需幾秒鐘。',
  78. importDSLTip: '當前草稿將被覆蓋。在導入之前將工作流匯出為備份。',
  79. importFailure: '匯入失敗',
  80. parallelTip: {
  81. click: {
  82. title: '點擊',
  83. desc: '添加',
  84. },
  85. drag: {
  86. title: '拖动',
  87. desc: '連接',
  88. },
  89. limit: '並行度僅限於 {{num}} 個分支。',
  90. depthLimit: '並行嵌套層限制為 {{num}} 個層',
  91. },
  92. parallelRun: '並行運行',
  93. disconnect: '斷開',
  94. jumpToNode: '跳轉到此節點',
  95. addParallelNode: '添加並行節點',
  96. parallel: '並行',
  97. branch: '分支',
  98. featuresDocLink: '瞭解更多資訊',
  99. fileUploadTip: '圖片上傳功能已升級為檔上傳。',
  100. ImageUploadLegacyTip: '現在,您可以在起始表單中創建檔案類型變數。我們將來不再支持圖片上傳功能。',
  101. featuresDescription: '增強 Web 應用程式用戶體驗',
  102. importWarning: '謹慎',
  103. importWarningDetails: 'DSL 版本差異可能會影響某些功能',
  104. openInExplore: '在“探索”中打開',
  105. onFailure: '失敗時',
  106. addFailureBranch: '添加 Fail Branch',
  107. loadMore: '載入更多工作流',
  108. noHistory: '無歷史記錄',
  109. publishUpdate: '發布更新',
  110. exportSVG: '匯出為 SVG',
  111. exportPNG: '匯出為 PNG',
  112. versionHistory: '版本歷史',
  113. exitVersions: '退出版本',
  114. exportImage: '匯出圖像',
  115. exportJPEG: '匯出為 JPEG',
  116. tagBound: '使用此標籤的應用程式數量',
  117. currentView: '當前檢視',
  118. currentWorkflow: '當前工作流程',
  119. },
  120. env: {
  121. envPanelTitle: '環境變數',
  122. envDescription: '環境變數可用於存儲私人信息和憑證。它們是唯讀的,並且可以在導出時與 DSL 文件分開。',
  123. envPanelButton: '添加變數',
  124. modal: {
  125. title: '添加環境變數',
  126. editTitle: '編輯環境變數',
  127. type: '類型',
  128. name: '名稱',
  129. namePlaceholder: '環境名稱',
  130. value: '值',
  131. valuePlaceholder: '環境值',
  132. secretTip: '用於定義敏感信息或數據,DSL 設置配置為防止洩露。',
  133. description: '描述',
  134. descriptionPlaceholder: '描述此變數',
  135. },
  136. export: {
  137. title: '導出機密環境變數?',
  138. checkbox: '導出機密值',
  139. ignore: '導出 DSL',
  140. export: '導出帶有機密值的 DSL',
  141. },
  142. },
  143. chatVariable: {
  144. panelTitle: '對話變數',
  145. panelDescription: '對話變數用於儲存 LLM 需要記住的互動資訊,包括對話歷史、上傳的檔案、使用者偏好等。這些變數可讀寫。',
  146. docLink: '查看我們的文件以了解更多。',
  147. button: '新增變數',
  148. modal: {
  149. title: '新增對話變數',
  150. editTitle: '編輯對話變數',
  151. name: '名稱',
  152. namePlaceholder: '變數名稱',
  153. type: '類型',
  154. value: '預設值',
  155. valuePlaceholder: '預設值,留空則不設定',
  156. description: '描述',
  157. descriptionPlaceholder: '描述此變數',
  158. editInJSON: '以 JSON 編輯',
  159. oneByOne: '逐一新增',
  160. editInForm: '在表單中編輯',
  161. arrayValue: '值',
  162. addArrayValue: '新增值',
  163. objectKey: '鍵',
  164. objectType: '類型',
  165. objectValue: '預設值',
  166. },
  167. storedContent: '已儲存內容',
  168. updatedAt: '更新於 ',
  169. },
  170. changeHistory: {
  171. title: '變更履歷',
  172. placeholder: '尚未更改任何內容',
  173. clearHistory: '清除歷史記錄',
  174. hint: '提示',
  175. hintText: '您的編輯操作將被跟踪並存儲在您的設備上,直到您離開編輯器。此歷史記錄將在您離開編輯器時被清除。',
  176. stepBackward_one: '{{count}} 步後退',
  177. stepBackward_other: '{{count}} 步後退',
  178. stepForward_one: '{{count}} 步前進',
  179. stepForward_other: '{{count}} 步前進',
  180. sessionStart: '會話開始',
  181. currentState: '當前狀態',
  182. nodeTitleChange: '區塊標題已更改',
  183. nodeDescriptionChange: '區塊描述已更改',
  184. nodeDragStop: '區塊已移動',
  185. nodeChange: '區塊已更改',
  186. nodeConnect: '區塊已連接',
  187. nodePaste: '區塊已粘貼',
  188. nodeDelete: '區塊已刪除',
  189. nodeAdd: '區塊已添加',
  190. nodeResize: '區塊已調整大小',
  191. noteAdd: '註釋已添加',
  192. noteChange: '註釋已更改',
  193. edgeDelete: '區塊已斷開連接',
  194. noteDelete: '註釋已刪除',
  195. },
  196. errorMsg: {
  197. fieldRequired: '{{field}} 不能為空',
  198. authRequired: '請先授權',
  199. invalidJson: '{{field}} 是非法的 JSON',
  200. fields: {
  201. variable: '變量名',
  202. variableValue: '變量值',
  203. code: '代碼',
  204. model: '模型',
  205. rerankModel: 'Rerank 模型',
  206. visionVariable: 'Vision Variable',
  207. },
  208. invalidVariable: '無效的變量',
  209. rerankModelRequired: '在開啟 Rerank 模型之前,請在設置中確認模型配置成功。',
  210. toolParameterRequired: '{{field}}:参數 [{{param}}] 為必填項',
  211. noValidTool: '{{field}} 未選擇有效工具',
  212. },
  213. singleRun: {
  214. testRun: '測試運行',
  215. startRun: '開始運行',
  216. running: '運行中',
  217. testRunIteration: '測試運行迭代',
  218. back: '返回',
  219. iteration: '迭代',
  220. loop: '循環',
  221. },
  222. tabs: {
  223. 'searchBlock': '搜索節點',
  224. 'blocks': '節點',
  225. 'tools': '工具',
  226. 'allTool': '全部',
  227. 'customTool': '自定義',
  228. 'workflowTool': '工作流',
  229. 'question-understand': '問題理解',
  230. 'logic': '邏輯',
  231. 'transform': '轉換',
  232. 'utilities': '工具',
  233. 'noResult': '未找到匹配項',
  234. 'searchTool': '搜索工具',
  235. 'agent': '代理策略',
  236. 'plugin': '插件',
  237. 'allAdded': '所有已添加的',
  238. 'addAll': '全部添加',
  239. },
  240. blocks: {
  241. 'start': '開始',
  242. 'end': '結束',
  243. 'answer': '直接回覆',
  244. 'llm': 'LLM',
  245. 'knowledge-retrieval': '知識檢索',
  246. 'question-classifier': '問題分類器',
  247. 'if-else': '條件分支',
  248. 'code': '代碼執行',
  249. 'template-transform': '模板轉換',
  250. 'http-request': 'HTTP 請求',
  251. 'variable-assigner': '變量聚合器',
  252. 'variable-aggregator': '變量聚合器',
  253. 'assigner': '變數分配器',
  254. 'iteration-start': '迭代開始',
  255. 'iteration': '迭代',
  256. 'parameter-extractor': '參數提取器',
  257. 'list-operator': '清單運算子',
  258. 'document-extractor': '文件提取器',
  259. 'agent': '代理',
  260. 'loop-start': '循環開始',
  261. 'loop': '循環',
  262. 'loop-end': '退出循環',
  263. },
  264. blocksAbout: {
  265. 'start': '定義一個 workflow 流程啟動的參數',
  266. 'end': '定義一個 workflow 流程的結束和結果類型',
  267. 'answer': '定義一個聊天對話的回覆內容',
  268. 'llm': '調用大語言模型回答問題或者對自然語言進行處理',
  269. 'knowledge-retrieval': '允許你從知識庫中查詢與用戶問題相關的文本內容',
  270. 'question-classifier': '定義用戶問題的分類條件,LLM 能夠根據分類描述定義對話的進展方式',
  271. 'if-else': '允許你根據 if/else 條件將 workflow 拆分成兩個分支',
  272. 'code': '執行一段 Python 或 NodeJS 代碼實現自定義邏輯',
  273. 'template-transform': '使用 Jinja 模板語法將數據轉換為字符串',
  274. 'http-request': '允許通過 HTTP 協議發送服務器請求',
  275. 'variable-assigner': '將多路分支的變量聚合為一個變量,以實現下游節點統一配置。',
  276. 'assigner': '變數分配節點用於為可寫入的變數(如對話變數)分配值。',
  277. 'variable-aggregator': '將多路分支的變量聚合為一個變量,以實現下游節點統一配置。',
  278. 'iteration': '對列表對象執行多次步驟直至輸出所有結果。',
  279. 'parameter-extractor': '利用 LLM 從自然語言內推理提取出結構化參數,用於後置的工具調用或 HTTP 請求。',
  280. 'document-extractor': '用於將上傳的文件解析為 LLM 易於理解的文字內容。',
  281. 'list-operator': '用於篩選或排序陣列內容。',
  282. 'agent': '調用大型語言模型來回答問題或處理自然語言',
  283. 'loop-end': '等同於「中斷」。這個節點沒有配置項目。當循環體達到這個節點時,循環終止。',
  284. 'loop': '執行邏輯迴圈,直到滿足終止條件或達到最大迴圈次數。',
  285. },
  286. operator: {
  287. zoomIn: '放大',
  288. zoomOut: '縮小',
  289. zoomTo50: '縮放到 50%',
  290. zoomTo100: '放大到 100%',
  291. zoomToFit: '自適應視圖',
  292. alignNodes: '對齊節點',
  293. distributeVertical: '垂直等間距',
  294. alignLeft: '左對齊',
  295. distributeHorizontal: '水平等間距',
  296. vertical: '垂直',
  297. alignTop: '頂部對齊',
  298. alignCenter: '居中對齊',
  299. horizontal: '水平',
  300. selectionAlignment: '選擇對齊',
  301. alignRight: '右對齊',
  302. alignBottom: '底部對齊',
  303. alignMiddle: '中部對齊',
  304. },
  305. panel: {
  306. userInputField: '用戶輸入字段',
  307. changeBlock: '更改節點',
  308. helpLink: '幫助鏈接',
  309. about: '關於',
  310. createdBy: '作者',
  311. nextStep: '下一步',
  312. addNextStep: '添加此工作流程中的下一個節點',
  313. selectNextStep: '選擇下一個節點',
  314. runThisStep: '運行此步驟',
  315. checklist: '檢查清單',
  316. checklistTip: '發佈前確保所有問題均已解決',
  317. checklistResolved: '所有問題均已解決',
  318. organizeBlocks: '整理節點',
  319. change: '更改',
  320. optional: '(選擇性)',
  321. moveToThisNode: '定位至此節點',
  322. minimize: '退出全螢幕',
  323. maximize: '最大化畫布',
  324. },
  325. nodes: {
  326. common: {
  327. outputVars: '輸出變量',
  328. insertVarTip: '插入變量',
  329. memory: {
  330. memory: '記憶',
  331. memoryTip: '聊天記憶設置',
  332. windowSize: '記憶窗口',
  333. conversationRoleName: '對話角色名',
  334. user: '用戶前綴',
  335. assistant: '助手前綴',
  336. },
  337. memories: {
  338. title: '記憶',
  339. tip: '聊天記憶',
  340. builtIn: '內置',
  341. },
  342. errorHandle: {
  343. none: {
  344. title: '沒有',
  345. desc: '如果發生異常且未得到處理,節點將停止運行',
  346. },
  347. defaultValue: {
  348. title: '預設值',
  349. desc: '發生錯誤時,請指定靜態輸出內容。',
  350. tip: '出錯時,將返回以下值。',
  351. inLog: 'Node 異常,按照預設值輸出。',
  352. output: '輸出預設值',
  353. },
  354. failBranch: {
  355. title: '失敗分支',
  356. desc: '當發生錯誤時,它會執行 exception 分支',
  357. customize: '轉到畫布以自定義 fail 分支邏輯。',
  358. inLog: 'Node 異常,將自動執行 fail 分支。節點輸出將返回錯誤類型和錯誤消息,並將其傳遞給下游。',
  359. customizeTip: '啟動 fail 分支後,節點引發的異常不會終止進程。相反,它將自動執行預定義的 fail 分支,允許您靈活地提供錯誤消息、報告、修復或跳過操作。',
  360. },
  361. partialSucceeded: {
  362. tip: '進程中有 {{num}} 個節點運行異常,請前往 tracing 查看日誌。',
  363. },
  364. title: '錯誤處理',
  365. tip: '異常處理策略,當節點遇到異常時觸發。',
  366. },
  367. retry: {
  368. retry: '重試',
  369. retryOnFailure: '失敗時重試',
  370. maxRetries: '最大重試次數',
  371. retryInterval: '重試間隔',
  372. retryTimes: '失敗時重試 {{times}} 次',
  373. retrying: '重試。。。',
  374. retrySuccessful: '重試成功',
  375. retryFailed: '重試失敗',
  376. retryFailedTimes: '{{times}} 次重試失敗',
  377. times: '次',
  378. ms: '毫秒',
  379. retries: '{{num}}重試',
  380. },
  381. typeSwitch: {
  382. input: '輸入值',
  383. variable: '使用變數',
  384. },
  385. },
  386. start: {
  387. required: '必填',
  388. inputField: '輸入字段',
  389. builtInVar: '內置變量',
  390. outputVars: {
  391. query: '用戶輸入',
  392. memories: {
  393. des: '會話歷史',
  394. type: '消息類型',
  395. content: '消息內容',
  396. },
  397. files: '文件列表',
  398. },
  399. noVarTip: '設置的輸入可在工作流程中使用',
  400. },
  401. end: {
  402. outputs: '輸出',
  403. output: {
  404. type: '輸出類型',
  405. variable: '輸出變量',
  406. },
  407. type: {
  408. 'none': '無',
  409. 'plain-text': '純文本',
  410. 'structured': '結構化',
  411. },
  412. },
  413. answer: {
  414. answer: '回覆',
  415. outputVars: '輸出變量',
  416. },
  417. llm: {
  418. model: '模型',
  419. variables: '變量',
  420. context: '上下文',
  421. contextTooltip: '您可以導入知識庫作為上下文',
  422. notSetContextInPromptTip: '要啟用上下文功能,請在提示中填寫上下文變量。',
  423. prompt: '提示詞',
  424. addMessage: '添加消息',
  425. roleDescription: {
  426. system: '為對話提供高層指導',
  427. user: '向模型提供指令、查詢或任何基於文本的輸入',
  428. assistant: '基於用戶消息的模型回覆',
  429. },
  430. vision: '視覺',
  431. files: '文件',
  432. resolution: {
  433. name: '分辨率',
  434. high: '高',
  435. low: '低',
  436. },
  437. outputVars: {
  438. output: '生成內容',
  439. usage: '模型用量信息',
  440. },
  441. singleRun: {
  442. variable: '變量',
  443. },
  444. sysQueryInUser: 'user message 中必須包含 sys.query',
  445. jsonSchema: {
  446. warningTips: {
  447. saveSchema: '請在保存結構之前完成當前欄位的編輯',
  448. },
  449. resetDefaults: '重置',
  450. instruction: '指示',
  451. apply: '申請',
  452. promptPlaceholder: '描述你的 JSON 架構...',
  453. addField: '新增字段',
  454. generate: '生成',
  455. descriptionPlaceholder: '添加描述',
  456. fieldNamePlaceholder: '欄位名稱',
  457. showAdvancedOptions: '顯示進階選項',
  458. import: '從 JSON 匯入',
  459. generatedResult: '生成的結果',
  460. generateJsonSchema: '生成 JSON 架構',
  461. promptTooltip: '將文本描述轉換成標準化的 JSON Schema 結構。',
  462. doc: '了解更多有關結構化輸出的資訊',
  463. addChildField: '新增子欄位',
  464. title: '結構化輸出模式',
  465. regenerate: '重新生成',
  466. stringValidations: '字串驗證',
  467. generationTip: '您可以使用自然語言快速創建 JSON Schema。',
  468. generating: '生成 JSON 架構...',
  469. back: '返回',
  470. required: '必需的',
  471. resultTip: '這是生成的結果。如果您不滿意,可以回去修改您的提示。',
  472. },
  473. },
  474. knowledgeRetrieval: {
  475. queryVariable: '查詢變量',
  476. knowledge: '知識庫',
  477. outputVars: {
  478. output: '召回的分段',
  479. content: '分段內容',
  480. title: '分段標題',
  481. icon: '分段圖標',
  482. url: '分段鏈接',
  483. metadata: '其他元數據',
  484. },
  485. metadata: {
  486. options: {
  487. disabled: {
  488. subTitle: '不啟用元數據過濾',
  489. title: '禁用',
  490. },
  491. automatic: {
  492. title: '自動的',
  493. subTitle: '根據用戶查詢自動生成元數據過濾條件',
  494. desc: '根據查詢變數自動生成元數據過濾條件',
  495. },
  496. manual: {
  497. title: '手動',
  498. subTitle: '手動添加元數據過濾條件',
  499. },
  500. },
  501. panel: {
  502. add: '添加條件',
  503. datePlaceholder: '選擇一個時間...',
  504. search: '搜尋元數據',
  505. conditions: '條件',
  506. title: '元數據過濾條件',
  507. select: '選擇變數...',
  508. placeholder: '輸入數值',
  509. },
  510. title: '元數據過濾',
  511. tip: '元數據過濾是使用元數據屬性(如標籤、類別或訪問權限)來精煉和控制在系統內檢索相關信息的過程。',
  512. },
  513. },
  514. http: {
  515. inputVars: '輸入變量',
  516. api: 'API',
  517. apiPlaceholder: '輸入 URL,輸入變量時請鍵入‘/’',
  518. notStartWithHttp: 'API 應該以 http:// 或 https:// 開頭',
  519. key: '鍵',
  520. value: '值',
  521. bulkEdit: '批量編輯',
  522. keyValueEdit: '鍵值編輯',
  523. headers: 'Headers',
  524. params: 'Params',
  525. body: 'Body',
  526. outputVars: {
  527. body: '響應內容',
  528. statusCode: '響應狀態碼',
  529. headers: '響應頭列表 JSON',
  530. files: '文件列表',
  531. },
  532. authorization: {
  533. 'authorization': '鑑權',
  534. 'authorizationType': '鑑權類型',
  535. 'no-auth': '無',
  536. 'api-key': 'API-Key',
  537. 'auth-type': 'API 鑑權類型',
  538. 'basic': '基礎',
  539. 'bearer': 'Bearer',
  540. 'custom': '自定義',
  541. 'api-key-title': 'API Key',
  542. 'header': 'Header',
  543. },
  544. insertVarPlaceholder: '鍵入 \'/\' 鍵快速插入變量',
  545. timeout: {
  546. title: '超時設置',
  547. connectLabel: '連接超時',
  548. connectPlaceholder: '輸入連接超時(以秒為單位)',
  549. readLabel: '讀取超時',
  550. readPlaceholder: '輸入讀取超時(以秒為單位)',
  551. writeLabel: '寫入超時',
  552. writePlaceholder: '輸入寫入超時(以秒為單位)',
  553. },
  554. type: '類型',
  555. binaryFileVariable: '二進位檔變數',
  556. extractListPlaceholder: '輸入清單項索引,鍵入 『/』 插入變數',
  557. curl: {
  558. placeholder: '在此處粘貼 cURL 字串',
  559. title: '從 cURL 導入',
  560. },
  561. verifySSL: {
  562. title: '驗證 SSL 證書',
  563. warningTooltip: '不建議在生產環境中禁用SSL驗證。這僅應用於開發或測試,因為這樣會使連接容易受到中間人攻擊等安全威脅的威脅。',
  564. },
  565. },
  566. code: {
  567. inputVars: '輸入變量',
  568. outputVars: '輸出變量',
  569. advancedDependencies: '高級依賴',
  570. advancedDependenciesTip: '在這裡添加一些預加載需要消耗較多時間或非默認內置的依賴包',
  571. searchDependencies: '搜索依賴',
  572. syncFunctionSignature: '同步函數簽名至代碼',
  573. },
  574. templateTransform: {
  575. inputVars: '輸入變量',
  576. code: '代碼',
  577. codeSupportTip: '只支持 Jinja2',
  578. outputVars: {
  579. output: '轉換後內容',
  580. },
  581. },
  582. ifElse: {
  583. if: 'If',
  584. else: 'Else',
  585. elseDescription: '用於定義當 if 條件不滿足時應執行的邏輯。',
  586. and: 'and',
  587. or: 'or',
  588. operator: '操作符',
  589. notSetVariable: '請先設置變量',
  590. comparisonOperator: {
  591. 'contains': '包含',
  592. 'not contains': '不包含',
  593. 'start with': '開始是',
  594. 'end with': '結束是',
  595. 'is': '是',
  596. 'is not': '不是',
  597. 'empty': '為空',
  598. 'not empty': '不為空',
  599. 'null': '空',
  600. 'not null': '不為空',
  601. 'all of': '全部',
  602. 'exists': '存在',
  603. 'in': '在',
  604. 'not in': '不在',
  605. 'not exists': '不存在',
  606. 'after': '之後',
  607. 'before': '之前',
  608. },
  609. enterValue: '輸入值',
  610. addCondition: '添加條件',
  611. conditionNotSetup: '條件未設置',
  612. selectVariable: '選擇變數...',
  613. optionName: {
  614. image: '圖像',
  615. url: '網址',
  616. doc: '文檔',
  617. localUpload: '本地上傳',
  618. video: '視頻',
  619. audio: '音訊',
  620. },
  621. select: '選擇',
  622. addSubVariable: '子變數',
  623. },
  624. variableAssigner: {
  625. title: '變量賦值',
  626. outputType: '輸出類型',
  627. varNotSet: '未設置變量',
  628. noVarTip: '添加需要賦值的變量',
  629. type: {
  630. string: 'String',
  631. number: 'Number',
  632. object: 'Object',
  633. array: 'Array',
  634. },
  635. aggregationGroup: '聚合分組',
  636. aggregationGroupTip: '開啟該功能後,變量聚合器內可以同時聚合多組變量',
  637. addGroup: '添加分組',
  638. outputVars: {
  639. varDescribe: '{{groupName}}的輸出變量',
  640. },
  641. setAssignVariable: '設置賦值變量',
  642. },
  643. assigner: {
  644. 'assignedVariable': '已分配變數',
  645. 'writeMode': '寫入模式',
  646. 'writeModeTip': '當已分配變數是陣列時,附加模式會新增到末尾。',
  647. 'over-write': '覆寫',
  648. 'append': '附加',
  649. 'plus': '加',
  650. 'clear': '清除',
  651. 'setVariable': '設定變數',
  652. 'variable': '變數',
  653. 'operations': {
  654. 'overwrite': '覆寫',
  655. '/=': '/=',
  656. 'title': '操作',
  657. '*=': '*=',
  658. 'extend': '擴展',
  659. '+=': '+=',
  660. 'set': '設置',
  661. 'over-write': '覆寫',
  662. '-=': '-=',
  663. 'append': '附加',
  664. 'clear': '清除',
  665. 'remove-first': '移除首項',
  666. 'remove-last': '移除末項',
  667. },
  668. 'noAssignedVars': '沒有可用的已分配變數',
  669. 'variables': '變數',
  670. 'selectAssignedVariable': '選擇配置的變數...',
  671. 'setParameter': '設定參數...',
  672. 'noVarTip': '點擊「+」按鈕添加變數',
  673. 'assignedVarsDescription': '分配的變數必須是可寫變數,例如對話變數。',
  674. 'varNotSet': '未設置變數',
  675. },
  676. tool: {
  677. authorize: '授權',
  678. inputVars: '輸入變量',
  679. outputVars: {
  680. text: '工具生成的內容',
  681. files: {
  682. title: '工具生成的文件',
  683. type: '支持類型。現在只支持圖片',
  684. transfer_method: '傳輸方式。值為 remote_url 或 local_file',
  685. url: '圖片鏈接',
  686. upload_file_id: '上傳文件 ID',
  687. },
  688. json: '工具生成的 JSON',
  689. },
  690. insertPlaceholder2: '插入變量',
  691. insertPlaceholder1: '輸入或按壓',
  692. settings: '設定',
  693. },
  694. questionClassifiers: {
  695. model: '模型',
  696. inputVars: '輸入變量',
  697. outputVars: {
  698. className: '分類名稱',
  699. usage: '模型用量信息',
  700. },
  701. class: '分類',
  702. classNamePlaceholder: '輸入你的分類名稱',
  703. advancedSetting: '高級設置',
  704. topicName: '主題內容',
  705. topicPlaceholder: '在這裡輸入你的主題內容',
  706. addClass: '添加分類',
  707. instruction: '指令',
  708. instructionTip: '你可以輸入額外的附加指令,幫助問題分類器更好的理解如何分類',
  709. instructionPlaceholder: '在這裡輸入你的指令',
  710. },
  711. parameterExtractor: {
  712. inputVar: '輸入變量',
  713. outputVars: {
  714. isSuccess: '是否成功。成功時值為 1,失敗時值為 0。',
  715. errorReason: '錯誤原因',
  716. usage: '模型用量信息',
  717. },
  718. extractParameters: '提取參數',
  719. importFromTool: '從工具導入',
  720. addExtractParameter: '添加提取參數',
  721. addExtractParameterContent: {
  722. name: '名稱',
  723. namePlaceholder: '提取參數名稱',
  724. type: '類型',
  725. typePlaceholder: '提取參數類型',
  726. description: '描述',
  727. descriptionPlaceholder: '提取參數描述',
  728. required: '必填',
  729. requiredContent: '必填僅作為模型推理的參考,不用於參數輸出的強制驗證。',
  730. },
  731. extractParametersNotSet: '提取參數未設置',
  732. instruction: '指令',
  733. instructionTip: '你可以輸入額外的附加指令,幫助參數提取器理解如何提取參數',
  734. advancedSetting: '高級設置',
  735. reasoningMode: '推理模式',
  736. reasoningModeTip: '你可以根據模型對於 Function calling 或 Prompt 的指令響應能力選擇合適的推理模式',
  737. },
  738. iteration: {
  739. deleteTitle: '刪除迭代節點?',
  740. deleteDesc: '刪除迭代節點將刪除所有子節點',
  741. input: '輸入',
  742. output: '輸出變量',
  743. iteration_one: '{{count}}個迭代',
  744. iteration_other: '{{count}}個迭代',
  745. currentIteration: '當前迭代',
  746. ErrorMethod: {
  747. operationTerminated: '終止',
  748. removeAbnormalOutput: 'remove-abnormal-output',
  749. continueOnError: '出錯時繼續',
  750. },
  751. comma: ',',
  752. parallelMode: '並行模式',
  753. parallelModeEnableTitle: 'Parallel Mode 已啟用',
  754. MaxParallelismTitle: '最大並行度',
  755. parallelModeUpper: '並行模式',
  756. parallelPanelDesc: '在並行模式下,反覆運算中的任務支援並行執行。',
  757. error_one: '{{count}}錯誤',
  758. errorResponseMethod: '錯誤回應方法',
  759. parallelModeEnableDesc: '在並行模式下,反覆運算中的任務支援並行執行。您可以在右側的 properties 面板中進行配置。',
  760. answerNodeWarningDesc: '並行模式警告:反覆運算中的應答節點、對話變數賦值和持久讀/寫操作可能會導致異常。',
  761. error_other: '{{count}}錯誤',
  762. MaxParallelismDesc: '最大並行度用於控制在單個反覆運算中同時執行的任務數。',
  763. },
  764. note: {
  765. editor: {
  766. link: '連結',
  767. openLink: '打開',
  768. medium: '中等',
  769. small: '小',
  770. invalidUrl: 'URL 無效',
  771. italic: '斜體的',
  772. bulletList: '項目符號清單',
  773. large: '大',
  774. unlink: '取消連結',
  775. enterUrl: '輸入網址...',
  776. bold: '大膽',
  777. showAuthor: '顯示作者',
  778. strikethrough: '刪除線',
  779. placeholder: '寫下您的筆記...',
  780. },
  781. addNote: '添加註釋',
  782. },
  783. docExtractor: {
  784. outputVars: {
  785. text: '提取的文字',
  786. },
  787. learnMore: '瞭解更多資訊',
  788. inputVar: '輸入變數',
  789. supportFileTypes: '支援文件類型:{{types}}。',
  790. },
  791. listFilter: {
  792. outputVars: {
  793. last_record: '最後一條記錄',
  794. first_record: '第一條記錄',
  795. result: '篩選結果',
  796. },
  797. desc: '描述',
  798. asc: 'ASC 的',
  799. orderBy: '排序依據',
  800. inputVar: '輸入變數',
  801. filterConditionComparisonValue: 'Filter Condition 值',
  802. filterCondition: '篩選條件',
  803. limit: '前 N 名',
  804. selectVariableKeyPlaceholder: 'Select sub variable key(選擇子變數鍵)',
  805. filterConditionComparisonOperator: 'Filter Condition Comparison 運算符',
  806. filterConditionKey: '篩選條件鍵',
  807. extractsCondition: '提取第 N 項',
  808. },
  809. agent: {
  810. strategy: {
  811. label: '代理策略',
  812. shortLabel: '策略',
  813. tooltip: '不同的 Agentic 策略決定了系統如何規劃和執行多步驟工具調用',
  814. configureTip: '請配置 agentic 策略。',
  815. searchPlaceholder: '搜索代理策略',
  816. selectTip: '選擇代理策略',
  817. configureTipDesc: '配置代理策略后,該節點將自動載入剩餘的配置。該策略將影響多步驟工具推理的機制。',
  818. },
  819. pluginInstaller: {
  820. installing: '安裝',
  821. install: '安裝',
  822. },
  823. modelNotInMarketplace: {
  824. title: '未安裝模型',
  825. manageInPlugins: '在插件中管理',
  826. desc: '此模型是從 Local 或 GitHub 儲存庫安裝的。請在安裝後使用。',
  827. },
  828. modelNotSupport: {
  829. title: '不支援的型號',
  830. desc: '已安裝的插件版本不提供此模型。',
  831. descForVersionSwitch: '已安裝的插件版本不提供此模型。按兩下以切換版本。',
  832. },
  833. modelSelectorTooltips: {
  834. deprecated: '此模型已棄用',
  835. },
  836. outputVars: {
  837. files: {
  838. type: '支撐類型。現在僅支援鏡像',
  839. transfer_method: '轉移方法。值為 remote_url 或 local_file',
  840. title: '代理生成的檔',
  841. url: '圖片網址',
  842. upload_file_id: '上傳檔 ID',
  843. },
  844. text: '代理生成的內容',
  845. json: '代理生成的 JSON',
  846. },
  847. checkList: {
  848. strategyNotSelected: '未選擇策略',
  849. },
  850. installPlugin: {
  851. title: '安裝插件',
  852. changelog: '更新日誌',
  853. cancel: '取消',
  854. desc: '即將安裝以下插件',
  855. install: '安裝',
  856. },
  857. pluginNotFoundDesc: '此插件是從 GitHub 安裝的。請前往插件 重新安裝',
  858. modelNotSelected: '未選擇模型',
  859. tools: '工具',
  860. strategyNotFoundDesc: '已安裝的插件版本不提供此策略。',
  861. pluginNotInstalledDesc: '此插件是從 GitHub 安裝的。請前往插件 重新安裝',
  862. strategyNotFoundDescAndSwitchVersion: '已安裝的插件版本不提供此策略。按兩下以切換版本。',
  863. strategyNotInstallTooltip: '{{strategy}} 未安裝',
  864. toolNotAuthorizedTooltip: '{{工具}}未授權',
  865. unsupportedStrategy: '不支援的策略',
  866. model: '型',
  867. modelNotInstallTooltip: '此模型未安裝',
  868. strategyNotSet: '代理策略未設置',
  869. toolNotInstallTooltip: '{{tool}} 未安裝',
  870. maxIterations: '最大反覆運算次數',
  871. toolbox: '工具箱',
  872. configureModel: '配置模型',
  873. learnMore: '瞭解更多資訊',
  874. linkToPlugin: '連結到插件',
  875. pluginNotInstalled: '此插件未安裝',
  876. notAuthorized: '未授權',
  877. clickToViewParameterSchema: '點擊查看參數架構',
  878. parameterSchema: '參數架構',
  879. },
  880. loop: {
  881. ErrorMethod: {
  882. operationTerminated: '終止',
  883. continueOnError: '繼續出錯',
  884. removeAbnormalOutput: '移除異常輸出',
  885. },
  886. loop_other: '{{count}} 循環',
  887. variableName: '變數名稱',
  888. error_one: '{{count}} 錯誤',
  889. loopMaxCount: '最大迴圈次數',
  890. input: '輸入',
  891. loopVariables: '循環變量',
  892. output: '輸出變量',
  893. comma: ',',
  894. errorResponseMethod: '錯誤回應方法',
  895. breakCondition: '迴圈終止條件',
  896. loopMaxCountError: '請輸入一個有效的最大迴圈次數,範圍為 1 到 {{maxCount}}',
  897. loop_one: '{{count}} 次循環',
  898. exitConditionTip: '循環節點至少需要一個退出條件',
  899. breakConditionTip: '只有在具有終止條件的循環內和對話變數中,才能引用變數。',
  900. totalLoopCount: '總迴圈次數:{{count}}',
  901. error_other: '{{count}} 錯誤',
  902. currentLoop: '電流迴路',
  903. finalLoopVariables: '最後迴圈變數',
  904. currentLoopCount: '當前循環次數:{{count}}',
  905. inputMode: '輸入模式',
  906. loopNode: '循環節點',
  907. initialLoopVariables: '初始迴圈變數',
  908. deleteDesc: '刪除循環節點將移除所有子節點',
  909. setLoopVariables: '在迴圈範圍內設置變數',
  910. deleteTitle: '刪除循環節點嗎?',
  911. },
  912. },
  913. tracing: {
  914. stopBy: '由{{user}}終止',
  915. },
  916. variableReference: {
  917. noAvailableVars: '無可用變數',
  918. noAssignedVars: '沒有可用的已分配變數',
  919. noVarsForOperation: '所選操作沒有可用於賦值的變數。',
  920. assignedVarsDescription: '分配的變數必須是可寫變數,例如',
  921. conversationVars: '對話變數',
  922. },
  923. versionHistory: {
  924. filter: {
  925. onlyShowNamedVersions: '僅顯示命名版本',
  926. onlyYours: '只有妳的',
  927. empty: '未找到匹配的版本歷史',
  928. all: '所有',
  929. reset: '重置過濾器',
  930. },
  931. editField: {
  932. releaseNotes: '發佈說明',
  933. titleLengthLimit: '標題不能超過 {{limit}} 個字符',
  934. releaseNotesLengthLimit: '發佈說明不能超過 {{limit}} 個字符',
  935. title: '標題',
  936. },
  937. action: {
  938. updateFailure: '更新版本失敗',
  939. restoreFailure: '無法恢復版本',
  940. restoreSuccess: '恢復版本',
  941. updateSuccess: '版本已更新',
  942. deleteSuccess: '版本已刪除',
  943. deleteFailure: '無法刪除版本',
  944. copyIdSuccess: 'ID 已複製到剪貼板',
  945. },
  946. nameThisVersion: '給這個版本命名',
  947. latest: '最新',
  948. currentDraft: '當前草稿',
  949. title: '版本',
  950. editVersionInfo: '編輯版本信息',
  951. restorationTip: '版本恢復後,當前草稿將被覆蓋。',
  952. deletionTip: '刪除是不可逆的,請確認。',
  953. releaseNotesPlaceholder: '描述發生了什麼變化',
  954. defaultName: '未命名版本',
  955. copyId: '複製ID',
  956. },
  957. debug: {
  958. settingsTab: '設定',
  959. lastRunTab: '最後一次運行',
  960. relationsTab: '關係',
  961. noData: {
  962. runThisNode: '運行此節點',
  963. description: '上次運行的結果將顯示在這裡',
  964. },
  965. variableInspect: {
  966. trigger: {
  967. cached: '查看緩存的變量',
  968. stop: '停止跑步',
  969. clear: '清晰',
  970. running: '快取運行狀態',
  971. normal: '變數檢查',
  972. },
  973. emptyLink: '了解更多',
  974. view: '查看日誌',
  975. clearAll: '重置所有',
  976. envNode: '環境',
  977. title: '變數檢查',
  978. clearNode: '清除快取變數',
  979. systemNode: '系統',
  980. reset: '重置為上次運行值',
  981. chatNode: '對話',
  982. edited: '編輯的',
  983. emptyTip: '在畫布上逐步執行節點或逐步運行節點後,您可以在變數檢視中查看節點變數的當前值。',
  984. resetConversationVar: '將對話變數重置為默認值',
  985. },
  986. relations: {
  987. dependencies: '依賴',
  988. dependents: '被依賴',
  989. dependenciesDescription: '此節點所依賴的其他節點',
  990. dependentsDescription: '依賴此節點的其他節點',
  991. noDependencies: '無依賴',
  992. noDependents: '無被依賴',
  993. },
  994. copyLastRun: '複製上一次運行',
  995. copyLastRunError: '未能複製上一次運行的輸入',
  996. noMatchingInputsFound: '在上次運行中未找到匹配的輸入',
  997. noLastRunFound: '沒有找到之前的運行',
  998. },
  999. }
  1000. export default translation