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

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