{}"
+ @click="
+ sendMessage && type !== 'log' ? sendMessage(item.content, 'new') : (content: string) => {}
+ "
class="problem-button mt-4 mb-4 flex"
- :class="sendMessage ? 'cursor' : 'disabled'"
+ :class="sendMessage && type !== 'log' ? 'cursor' : 'disabled'"
>
{{ item.content }}
@@ -61,6 +63,7 @@ config({
tokens[idx].attrSet('target', '_blank')
return md.renderer.renderToken(tokens, idx, options)
}
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
document.appendChild
},
})
@@ -74,6 +77,7 @@ const props = withDefaults(
chat_record_id?: string
runtime_node_id?: string
disabled?: boolean
+ type?: 'log' | 'ai-chat' | 'debug-ai-chat'
}>(),
{
source: '',
diff --git a/ui/src/layout/components/breadcrumb/index.vue b/ui/src/layout/components/breadcrumb/index.vue
index a505cdaa..57408cd0 100644
--- a/ui/src/layout/components/breadcrumb/index.vue
+++ b/ui/src/layout/components/breadcrumb/index.vue
@@ -11,12 +11,12 @@
>
![]()
-
+ /> -->
{{ current?.name }}
diff --git a/ui/src/locales/lang/en-US/views/tool.ts b/ui/src/locales/lang/en-US/views/tool.ts
index c7377964..d09c0f42 100644
--- a/ui/src/locales/lang/en-US/views/tool.ts
+++ b/ui/src/locales/lang/en-US/views/tool.ts
@@ -68,9 +68,11 @@ export default {
inputPlaceholder: 'Please enter parameter values',
},
mcp: {
+ title: 'MCP Service',
label: 'MCP Server Config',
placeholder: 'Please enter MCP Server config',
tip: 'Only supports SSE and Streamable HTTP calling methods',
+ requiredMessage: 'Please enter MCP Server Config',
},
debug: {
run: 'Run',
diff --git a/ui/src/locales/lang/zh-CN/views/tool.ts b/ui/src/locales/lang/zh-CN/views/tool.ts
index d1c1dd06..23823e2b 100644
--- a/ui/src/locales/lang/zh-CN/views/tool.ts
+++ b/ui/src/locales/lang/zh-CN/views/tool.ts
@@ -64,9 +64,11 @@ export default {
inputPlaceholder: '请输入参数值',
},
mcp: {
+ title: 'MCP 服务',
label: 'MCP Server Config',
placeholder: '请输入MCP Server配置',
tip: '仅支持SSE、Streamable HTTP调用方式',
+ requiredMessage: '请输入 MCP Server Config',
},
debug: {
run: '运行',
diff --git a/ui/src/locales/lang/zh-Hant/views/tool.ts b/ui/src/locales/lang/zh-Hant/views/tool.ts
index a3d06efc..2c34c9eb 100644
--- a/ui/src/locales/lang/zh-Hant/views/tool.ts
+++ b/ui/src/locales/lang/zh-Hant/views/tool.ts
@@ -65,9 +65,11 @@ export default {
inputPlaceholder: '請輸入參數值',
},
mcp: {
+ title: 'MCP 服務',
label: 'MCP Server Config',
placeholder: '請輸入MCP Server配置',
tip: '僅支援SSE、Streamable HTTP呼叫方式',
+ requiredMessage: '請輸入 MCP Server Config',
},
debug: {
run: '運行',
diff --git a/ui/src/styles/component.scss b/ui/src/styles/component.scss
index 2b246192..4726a601 100644
--- a/ui/src/styles/component.scss
+++ b/ui/src/styles/component.scss
@@ -155,6 +155,7 @@
// radio-button-group
.app-radio-button-group {
+ background: #ffffff;
border: 1px solid var(--app-border-color-dark);
border-radius: var(--el-border-radius-base);
.el-radio-button {
diff --git a/ui/src/styles/element-plus.scss b/ui/src/styles/element-plus.scss
index 6383d1ca..0e2cf9af 100644
--- a/ui/src/styles/element-plus.scss
+++ b/ui/src/styles/element-plus.scss
@@ -282,3 +282,8 @@
.el-tag {
padding: 0 6px;
}
+
+// el-input
+.el-input {
+ --el-input-text-color: var(--el-text-color-primary);
+}
diff --git a/ui/src/views/application/component/AddKnowledgeDialog.vue b/ui/src/views/application/component/AddKnowledgeDialog.vue
index fcc8b2e5..63a48c34 100644
--- a/ui/src/views/application/component/AddKnowledgeDialog.vue
+++ b/ui/src/views/application/component/AddKnowledgeDialog.vue
@@ -54,7 +54,7 @@
-
+
>([])
const knowledgeList = ref>([])
-const loading = ref(false)
+const apiLoading = ref(false)
const filterData = computed(() => {
return currentEmbedding.value
@@ -228,7 +228,7 @@ function getList() {
isShared: folder_id === 'share',
systemType: apiType.value,
})
- .getKnowledgeList({ folder_id }, loading)
+ .getKnowledgeList({ folder_id }, apiLoading)
.then((res: any) => {
knowledgeList.value = uniqueArray([...knowledgeList.value, ...res.data], 'id')
searchData.value = res.data
diff --git a/ui/src/views/application/component/McpServersDialog.vue b/ui/src/views/application/component/McpServersDialog.vue
index 7500ac4f..1f7dec2e 100644
--- a/ui/src/views/application/component/McpServersDialog.vue
+++ b/ui/src/views/application/component/McpServersDialog.vue
@@ -13,6 +13,8 @@
ref="paramFormRef"
:model="form"
require-asterisk-position="right"
+ hide-required-asterisk
+ @submit.prevent
>
@@ -22,7 +24,22 @@
{{ $t('common.custom') }}
-
+
+
+ {{ `MCP ${$t('views.applicationWorkflow.nodes.mcpNode.tool')}` }}
+ *
+
- {{ mcpTool.name }}
-
- {{ $t('views.shared.title') }}
-
+
+
+
+
+
{{ mcpTool.name }}
+
+ {{ $t('views.shared.title') }}
+
+
+
+ {{ $t('views.tool.form.mcp.label') }}
+ *
+
+ ({{ $t('views.tool.form.mcp.tip') }})
+
+
diff --git a/ui/src/views/paragraph/index.vue b/ui/src/views/paragraph/index.vue
index d4b19d6e..82a6e117 100644
--- a/ui/src/views/paragraph/index.vue
+++ b/ui/src/views/paragraph/index.vue
@@ -39,7 +39,12 @@
clearable
>
-
+
@@ -227,6 +232,11 @@ const title = ref('')
const search = ref('')
const searchType = ref('title')
+const searchTypeChange = () => {
+ search.value = ''
+}
+
+
const dialogVisible = ref(false)
watch(
() => ParagraphDialogRef.value?.dialogVisible,
diff --git a/ui/src/views/system-resource-management/ApplicationResourceIndex.vue b/ui/src/views/system-resource-management/ApplicationResourceIndex.vue
index b4682b7f..b7c86c50 100644
--- a/ui/src/views/system-resource-management/ApplicationResourceIndex.vue
+++ b/ui/src/views/system-resource-management/ApplicationResourceIndex.vue
@@ -52,18 +52,9 @@
-
+
-
-
-
{{ scope.row.name }}
@@ -448,7 +439,6 @@ watch(
{ immediate: true },
)
-
function filterWorkspaceChange(val: string) {
if (val === 'clear') {
workspaceArr.value = []
diff --git a/ui/src/views/system-resource-management/ToolResourceIndex.vue b/ui/src/views/system-resource-management/ToolResourceIndex.vue
index cc4ff8f0..337da90b 100644
--- a/ui/src/views/system-resource-management/ToolResourceIndex.vue
+++ b/ui/src/views/system-resource-management/ToolResourceIndex.vue
@@ -61,9 +61,8 @@
>
-
-
-
+
+
{{ row.name }}
@@ -72,13 +71,15 @@
-
- MCP
-
+ MCP
- {{
- $t(ToolType[scope.row.template_id ? 'INTERNAL' : ('CUSTOM' as keyof typeof ToolType)])
- }}
+ {{
+ $t(
+ ToolType[
+ scope.row.template_id ? 'INTERNAL' : ('CUSTOM' as keyof typeof ToolType)
+ ],
+ )
+ }}
diff --git a/ui/src/views/system-shared/ToolSharedIndex.vue b/ui/src/views/system-shared/ToolSharedIndex.vue
index d3ffe2e8..e1d6ce0e 100644
--- a/ui/src/views/system-shared/ToolSharedIndex.vue
+++ b/ui/src/views/system-shared/ToolSharedIndex.vue
@@ -2,19 +2,20 @@
@@ -26,11 +27,10 @@ import { onMounted, ref, reactive, computed } from 'vue'
import ToolListContainer from '@/views/tool/component/ToolListContainer.vue'
import { t } from '@/locales'
-import useStore from "@/stores";
+import useStore from '@/stores'
const { tool } = useStore()
-
const toolType = ref('')
function radioChange() {
diff --git a/ui/src/views/tool/McpToolFormDrawer.vue b/ui/src/views/tool/McpToolFormDrawer.vue
index c94da16e..ac7ec86d 100644
--- a/ui/src/views/tool/McpToolFormDrawer.vue
+++ b/ui/src/views/tool/McpToolFormDrawer.vue
@@ -13,6 +13,7 @@
:rules="rules"
label-position="top"
require-asterisk-position="right"
+ hide-required-asterisk
v-loading="loading"
@submit.prevent
>
@@ -31,10 +32,11 @@
:size="32"
style="background: none"
>
-
+
-
-
+
+
+
-