diff --git a/apps/application/serializers/application.py b/apps/application/serializers/application.py
index b300c35b3..9ed7da977 100644
--- a/apps/application/serializers/application.py
+++ b/apps/application/serializers/application.py
@@ -631,9 +631,10 @@ class ApplicationOperateSerializer(serializers.Serializer):
if with_valid:
self.is_valid(raise_exception=True)
McpServersSerializer(data=instance).is_valid(raise_exception=True)
- if '"stdio"' in instance.get('mcp_servers'):
- raise AppApiException(500, _('stdio is not supported'))
servers = json.loads(instance.get('mcp_servers'))
+ for server, config in servers.items():
+ if config.get('transport') not in ['sse', 'streamable_http']:
+ raise AppApiException(500, _('Only support transport=sse or transport=streamable_http'))
tools = []
for server in servers:
tools += [
diff --git a/ui/src/components/ai-chat/component/chat-input-operate/TouchChat.vue b/ui/src/components/ai-chat/component/chat-input-operate/TouchChat.vue
index 5cd334bf5..15dc43169 100644
--- a/ui/src/components/ai-chat/component/chat-input-operate/TouchChat.vue
+++ b/ui/src/components/ai-chat/component/chat-input-operate/TouchChat.vue
@@ -43,7 +43,6 @@
-
+
diff --git a/ui/src/components/ai-chat/index.scss b/ui/src/components/ai-chat/index.scss
index e48f9a29a..ca8415386 100644
--- a/ui/src/components/ai-chat/index.scss
+++ b/ui/src/components/ai-chat/index.scss
@@ -16,8 +16,6 @@
}
.content {
- // padding-left: var(--padding-left);
- // padding-right: var(--padding-left);
:deep(ol) {
margin-left: 16px !important;
diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue
index e7d02343e..001c835dd 100644
--- a/ui/src/components/ai-chat/index.vue
+++ b/ui/src/components/ai-chat/index.vue
@@ -316,11 +316,6 @@ const openChatId: () => Promise = () => {
return res.data
})
.catch((res) => {
- // if (res.response.status === 403) {
- // return application.asyncAppAuthentication(accessToken).then(() => {
- // return openChatId()
- // })
- // }
return Promise.reject(res)
})
}
diff --git a/ui/src/components/app-charts/components/LineCharts.vue b/ui/src/components/app-charts/components/LineCharts.vue
index 8efb177f9..8e56944ff 100644
--- a/ui/src/components/app-charts/components/LineCharts.vue
+++ b/ui/src/components/app-charts/components/LineCharts.vue
@@ -59,12 +59,6 @@ function initChart() {
tooltip: {
trigger: 'axis',
valueFormatter: (value: any) => numberFormat(value),
- // axisPointer: {
- // type: 'cross',
- // label: {
- // backgroundColor: '#6a7985'
- // }
- // }
},
legend: {
right: 0,
diff --git a/ui/src/components/card-checkbox/index.vue b/ui/src/components/card-checkbox/index.vue
index ceb091faa..c1a1629f5 100644
--- a/ui/src/components/card-checkbox/index.vue
+++ b/ui/src/components/card-checkbox/index.vue
@@ -30,11 +30,6 @@ const props = defineProps<{
const toModelValue = computed(() => (props.valueField ? props.data[props.valueField] : props.data))
-// const isChecked = computed({
-// get: () => props.modelValue.includes(toModelValue.value)),
-// set: (val) => val
-// })
-
const emit = defineEmits(['update:modelValue', 'change'])
const checked = () => {
diff --git a/ui/src/components/dynamics-form/constructor/items/TextInputConstructor.vue b/ui/src/components/dynamics-form/constructor/items/TextInputConstructor.vue
index c557a9e07..2e312ccd4 100644
--- a/ui/src/components/dynamics-form/constructor/items/TextInputConstructor.vue
+++ b/ui/src/components/dynamics-form/constructor/items/TextInputConstructor.vue
@@ -165,7 +165,6 @@ onMounted(() => {
formValue.value.minlength = 0
formValue.value.maxlength = 200
formValue.value.default_value = ''
- // console.log(formValue.value.show_default_value)
if (formValue.value.show_default_value === undefined) {
formValue.value.show_default_value = true
}
diff --git a/ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue b/ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue
index 34372f3ee..2abe6ebf8 100644
--- a/ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue
+++ b/ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue
@@ -183,16 +183,6 @@ watch(dialogVisible, (bool) => {
}
}
})
-// watch(
-// () => form.value.authentication,
-// (b) => {
-// if (b) {
-// applicationApi.getChatUserAuthType().then((ok) => {
-// auth_list.value = ok.data
-// })
-// }
-// },
-// )
const open = (data: any) => {
form.value.access_num = data.access_num
form.value.white_active = data.white_active
diff --git a/ui/src/views/application/component/ParamSettingDialog.vue b/ui/src/views/application/component/ParamSettingDialog.vue
index 1ba981004..46b99890b 100644
--- a/ui/src/views/application/component/ParamSettingDialog.vue
+++ b/ui/src/views/application/component/ParamSettingDialog.vue
@@ -260,20 +260,6 @@ const isWorkflowType = ref(false)
watch(dialogVisible, (bool) => {
if (!bool) {
- // form.value = {
- // knowledge_setting: {
- // search_mode: 'embedding',
- // top_n: 3,
- // similarity: 0.6,
- // max_paragraph_char_number: 5000,
- // no_references_setting: {
- // status: 'ai_questioning',
- // value: '{question}'
- // }
- // },
- // problem_optimization: false,
- // problem_optimization_prompt: ''
- // }
noReferencesform.value = {
ai_questioning: defaultValue['ai_questioning'],
designated_answer: defaultValue['designated_answer'],
diff --git a/ui/src/views/chat/pc/index.vue b/ui/src/views/chat/pc/index.vue
index 827aea257..4f4e7e77b 100644
--- a/ui/src/views/chat/pc/index.vue
+++ b/ui/src/views/chat/pc/index.vue
@@ -509,7 +509,6 @@ async function openExecutionDetail(row: any) {
async function openKnowledgeSource(row: any) {
rightPanelTitle.value = t('chat.KnowledgeSource.title')
rightPanelType.value = 'knowledgeSource'
- // TODO 数据
rightPanelDetail.value = row
rightPanelSize.value = 400
}
diff --git a/ui/src/views/chat/user-login/scanCompinents/QrCodeTab.vue b/ui/src/views/chat/user-login/scanCompinents/QrCodeTab.vue
index 5a50dd133..9a518d6b3 100644
--- a/ui/src/views/chat/user-login/scanCompinents/QrCodeTab.vue
+++ b/ui/src/views/chat/user-login/scanCompinents/QrCodeTab.vue
@@ -40,7 +40,6 @@ const props = defineProps<{ tabs: Tab[] }>()
const activeKey = ref('')
const allConfigs = ref([])
const config = ref({ app_key: '', app_secret: '' })
-// const logoUrl = ref('')
const { login } = useStore()
async function getPlatformInfo() {
try {
diff --git a/ui/src/views/paragraph/component/ParagraphCard.vue b/ui/src/views/paragraph/component/ParagraphCard.vue
index f6e101222..56d9ffaa0 100644
--- a/ui/src/views/paragraph/component/ParagraphCard.vue
+++ b/ui/src/views/paragraph/component/ParagraphCard.vue
@@ -20,7 +20,7 @@
v-model="data.is_active"
:before-change="() => changeState(data)"
size="small"
- v-if="permissionPrecise.doc_edit(id)"
+ v-if="permissionPrecise.doc_edit(id)"
/>
@@ -222,7 +222,7 @@ function editParagraph(row: any) {
const cardClick = permissionPrecise.value.doc_edit(id)
function handleClickCard(row: any) {
- if (!cardClick || dialogVisible.value)
+ if (!cardClick || dialogVisible.value)
{return }
if (!props.disabled) {
editParagraph(row)
@@ -301,4 +301,4 @@ watch(dialogVisible, (val: boolean)=>{
display: none;
}
}
-
\ No newline at end of file
+
diff --git a/ui/src/workflow/nodes/application-node/index.vue b/ui/src/workflow/nodes/application-node/index.vue
index 7aaa08bc0..bb22383a8 100644
--- a/ui/src/workflow/nodes/application-node/index.vue
+++ b/ui/src/workflow/nodes/application-node/index.vue
@@ -222,7 +222,6 @@ const update_field = () => {
set(props.nodeModel.properties, 'status', 500)
return
}
- // todo
applicationApi
.getApplicationDetail(props.nodeModel.properties.node_data.application_id)
.then((ok) => {
diff --git a/ui/src/workflow/nodes/tool-lib-node/index.vue b/ui/src/workflow/nodes/tool-lib-node/index.vue
index aa6eae89f..4f8e3abe5 100644
--- a/ui/src/workflow/nodes/tool-lib-node/index.vue
+++ b/ui/src/workflow/nodes/tool-lib-node/index.vue
@@ -127,7 +127,6 @@ const update_field = () => {
set(props.nodeModel.properties, 'status', 500)
return
}
- //todo
ToolApi.getToolById(props.nodeModel.properties.node_data.tool_lib_id)
.then((ok) => {
const old_input_field_list = props.nodeModel.properties.node_data.input_field_list
diff --git a/ui/vite.config.ts b/ui/vite.config.ts
index 97430f098..ad11c8aa4 100644
--- a/ui/vite.config.ts
+++ b/ui/vite.config.ts
@@ -36,12 +36,10 @@ export default defineConfig((conf: any) => {
const ENV = loadEnv(mode, envDir)
const proxyConf: Record = {}
proxyConf['/admin/api'] = {
- // target: 'http://47.92.195.88:8080/',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
}
proxyConf['/chat/api'] = {
- // target: 'http://47.92.195.88:8080/',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
}