Skip to content

Commit 6fcf987

Browse files
fix: Copywriting
1 parent 37123ed commit 6fcf987

6 files changed

Lines changed: 37 additions & 4 deletions

File tree

ui/src/components/folder-virtualized-tree/VirtualizedTree.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
@after-drop="onAfterDrop"
1111
:rootDroppable="false"
1212
:statHandler="statHandler"
13+
:disableDrag="draggable"
14+
:disableDrop="draggable"
1315
>
1416
<template #default="{ node, stat }">
1517
<div
@@ -53,6 +55,10 @@ const props = defineProps({
5355
return node.name?.toLowerCase().includes(filterText.toLowerCase())
5456
},
5557
},
58+
draggable: {
59+
type: Boolean,
60+
default: false,
61+
},
5662
})
5763
5864
type DraggableInstance = InstanceType<typeof Draggable>

ui/src/locales/lang/en-US/views/application.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,20 @@ export default {
3535
confirmUse: 'Are you sure you want to use',
3636
overwrite: 'overwrite the current workflow',
3737
},
38-
38+
longTermMemory: {
39+
title: 'Long-term Memory',
40+
setting: 'Long-term Memory Settings',
41+
triggerType: 'Trigger Type',
42+
roundTrigger: 'Round-based Trigger',
43+
roundTriggerTip: 'After accumulating N rounds, automatically extract N rounds of conversation to generate memory',
44+
triggerInterval: 'Trigger Interval',
45+
scheduledTrigger: 'Scheduled Trigger',
46+
scheduledTriggerTip: 'After reaching the set time, automatically extract all conversations within the cycle to generate memory',
47+
cronExpressionInvalid: 'Cron expression is invalid',
48+
tips1: `After enabling, new conversations will be recorded from the activation time and memory will be generated periodically, which can be called through`,
49+
tips2: `variables in the system prompt.
50+
After disabling, the long-term memory of the conversation users will be cleared, and re-enabling will resume accumulation from the activation point.`,
51+
},
3952
form: {
4053
appName: {
4154
placeholder: 'Please enter the agent name',

ui/src/locales/lang/zh-Hant/views/application.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ export default {
3131
confirmUse: '確定使用',
3232
overwrite: '覆蓋當前工作流',
3333
},
34+
longTermMemory: {
35+
title: '長期記憶',
36+
setting: '長期記憶設置',
37+
triggerType: '觸發方式',
38+
roundTrigger: '按輪次觸發',
39+
roundTriggerTip: '累計到N輪後,自動提煉N輪對話,生成記憶',
40+
triggerInterval: '觸發間隔',
41+
scheduledTrigger: '按时间触发',
42+
scheduledTriggerTip: '到设定时间后,自动提炼周期内所有对话,生成记忆',
43+
cronExpressionInvalid: 'Cron表达式不合法',
44+
tips1: `開啟後,從開啟時間記錄新對話並按周期生成記憶,可通過`,
45+
tips2: `變數在系統提示詞中調用。
46+
關閉後,將清空對話用戶的長期記憶,再次開啟將重新從開啟時點開始累積。`,
47+
},
3448
form: {
3549
appName: {
3650
placeholder: '請輸入智能體名稱',

ui/src/views/application/ApplicationSetting.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ const optimizationPrompt =
985985
986986
const longTermPrompt =
987987
t('views.application.longTermMemory.tips1') +
988-
'{{memory}}' +
988+
'{memory}' +
989989
t('views.application.longTermMemory.tips2')
990990
991991
const collapseData = reactive({

ui/src/workflow/nodes/ai-chat-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ ${t('views.problem.title')}:
606606
607607
const longTermPrompt =
608608
t('views.application.longTermMemory.tips1') +
609-
'{{memory}}' +
609+
'{memory}' +
610610
t('views.application.longTermMemory.tips2')
611611
612612
const collapseData = reactive({

ui/src/workflow/nodes/base-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ const form = {
267267
prologue: t('views.application.form.defaultPrologue'),
268268
}
269269
270-
const longTermTips = t('views.application.longTermMemory.tips1') + '{{memory}}' + t('views.application.longTermMemory.tips2')
270+
const longTermTips = t('views.application.longTermMemory.tips1') + '{memory}' + t('views.application.longTermMemory.tips2')
271271
272272
const wheel = (e: any) => {
273273
if (e.ctrlKey === true) {

0 commit comments

Comments
 (0)