workflow.ts 24 KB

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