workflow.ts 28 KB

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