workflow.ts 28 KB

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