diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index 27986e76..2d2d96a2 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -1265,6 +1265,7 @@ export const en = { emotionLine: 'Emotion Changes Over Time', interaction: 'Interaction Frequency & Relationship Stages', timelines_memory: 'All', + Chunk: 'Chunk', MemorySummary: 'Long-term Accumulation', Statement: 'Emotional Memory', ExtractedEntity: 'Episodic Memory', @@ -1786,6 +1787,9 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re temperature: 'Temperature', max_tokens: 'Max Tokens', context: 'Context', + memory: 'Memory', + enable_window: 'Memory Window', + inner: 'Built-in', }, start: { variables: 'Input Fields', diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index 8fa73fd3..53e71c84 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -1343,6 +1343,7 @@ export const zh = { emotionLine: '情绪随时间变化', interaction: '互动频率 & 关系阶段', timelines_memory: '全部', + Chunk: '工作记忆', MemorySummary: '长期沉淀', Statement: '情绪记忆', ExtractedEntity: '情景记忆', @@ -1883,6 +1884,9 @@ export const zh = { temperature: '温度', max_tokens: '最大令牌数', context: '上下文', + memory: '记忆', + enable_window: '记忆窗口', + inner: '内置', }, start: { variables: '输入字段', diff --git a/web/src/views/ApplicationConfig/Agent.tsx b/web/src/views/ApplicationConfig/Agent.tsx index ce51c622..81f902cb 100644 --- a/web/src/views/ApplicationConfig/Agent.tsx +++ b/web/src/views/ApplicationConfig/Agent.tsx @@ -176,6 +176,9 @@ const Agent = forwardRef((_props, ref) => { if (response?.knowledge_retrieval?.knowledge_bases?.length) { getDefaultKnowledgeList(response) } + if (response?.tools?.length) { + setToolList(response?.tools) + } }).finally(() => { setLoading(false) }) diff --git a/web/src/views/ApplicationConfig/components/ToolList.tsx b/web/src/views/ApplicationConfig/components/ToolList.tsx index 9834b186..fde7286b 100644 --- a/web/src/views/ApplicationConfig/components/ToolList.tsx +++ b/web/src/views/ApplicationConfig/components/ToolList.tsx @@ -79,8 +79,6 @@ const ToolList: FC<{ data: ToolOption[]; onUpdate: (config: ToolOption[]) => voi } }, [data]) - console.log('toolList', toolList) - const handleAddTool = () => { toolModalRef.current?.handleOpen() }