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

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