diff --git a/ui/src/locales/lang/en-US/views/tool.ts b/ui/src/locales/lang/en-US/views/tool.ts index d09c0f42c..bf3e96263 100644 --- a/ui/src/locales/lang/en-US/views/tool.ts +++ b/ui/src/locales/lang/en-US/views/tool.ts @@ -3,8 +3,11 @@ export default { all: 'All', createTool: 'Create Tool', editTool: 'Edit Tool', + createMcpTool: 'Create MCP', + editMcpTool: 'Edit MCP', copyTool: 'Copy Tool', importTool: 'Import Tool', + settingTool: 'Set Tool', toolStore: { title: 'Tool Store', createFromToolStore: 'Create from Tool Store', diff --git a/ui/src/locales/lang/zh-CN/views/tool.ts b/ui/src/locales/lang/zh-CN/views/tool.ts index 23823e2b6..2ef19fbac 100644 --- a/ui/src/locales/lang/zh-CN/views/tool.ts +++ b/ui/src/locales/lang/zh-CN/views/tool.ts @@ -7,6 +7,7 @@ export default { editMcpTool: '编辑MCP', copyTool: '复制工具', importTool: '导入工具', + settingTool: '设置工具', toolStore: { title: '工具商店', createFromToolStore: '从工具商店创建', diff --git a/ui/src/locales/lang/zh-Hant/views/tool.ts b/ui/src/locales/lang/zh-Hant/views/tool.ts index 2c34c9eb2..ceb0b5ca2 100644 --- a/ui/src/locales/lang/zh-Hant/views/tool.ts +++ b/ui/src/locales/lang/zh-Hant/views/tool.ts @@ -3,8 +3,11 @@ export default { all: '全部', createTool: '建立工具', editTool: '編輯工具', + createMcpTool: '建立MCP', + editMcpTool: '編輯MCP', copyTool: '複製工具', importTool: '匯入工具', + settingTool: '設定工具', toolStore: { title: '工具商店', createFromToolStore: '從工具商店創建', diff --git a/ui/src/styles/app.scss b/ui/src/styles/app.scss index 4c782bbae..a97439aef 100644 --- a/ui/src/styles/app.scss +++ b/ui/src/styles/app.scss @@ -56,7 +56,7 @@ div:focus { } ul { - list-style: circle; + list-style: none; margin: 0; padding: 0; } diff --git a/ui/src/styles/md-editor.scss b/ui/src/styles/md-editor.scss index 2546ab0a3..9a19f1fef 100644 --- a/ui/src/styles/md-editor.scss +++ b/ui/src/styles/md-editor.scss @@ -21,6 +21,9 @@ border: 0 !important; max-width: 360px !important; } + ul { + list-style: circle; + } } @media only screen and (max-width: 768px) { diff --git a/ui/src/views/application/component/ToolDialog.vue b/ui/src/views/application/component/ToolDialog.vue index 87332676f..1585a7f7c 100644 --- a/ui/src/views/application/component/ToolDialog.vue +++ b/ui/src/views/application/component/ToolDialog.vue @@ -1,89 +1,227 @@ - - - - - {{ mcpTool.name }} - - {{ $t('views.shared.title') }} - - - - - + + + + + {{ $t('views.tool.settingTool') }} + + + + + + + + + + + + + + + + + {{ currentFolder?.name }} + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + - - {{ $t('common.cancel') }} - - {{ $t('common.save') }} - - + + + + {{ $t('common.selected') }} {{ checkList.length }} + + + {{ $t('common.clear') }} + + + + + {{ $t('common.cancel') }} + + + {{ $t('common.add') }} + + + - + diff --git a/ui/src/workflow/nodes/ai-chat-node/index.vue b/ui/src/workflow/nodes/ai-chat-node/index.vue index 39252e5c0..bc2dd1ff6 100644 --- a/ui/src/workflow/nodes/ai-chat-node/index.vue +++ b/ui/src/workflow/nodes/ai-chat-node/index.vue @@ -247,7 +247,6 @@ const model_change = (model_id?: string) => { } } -// @ts-ignore const defaultPrompt = `${t('views.applicationWorkflow.nodes.aiChatNode.defaultPrompt')}: {{${t('views.applicationWorkflow.nodes.searchKnowledgeNode.label')}.data}} ${t('views.problem.title')}: @@ -364,10 +363,7 @@ function submitMcpServersDialog(config: any) { const toolDialogRef = ref() function openToolDialog() { - const config = { - tool_ids: chat_data.value.tool_ids, - } - toolDialogRef.value.open(config, toolSelectOptions.value) + toolDialogRef.value.open(chat_data.value.tool_ids) } function submitToolDialog(config: any) { set(props.nodeModel.properties.node_data, 'tool_ids', config.tool_ids)