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 33KB

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