diff --git a/ui/src/components/ai-chat/component/inline-params/InlineFormItem.vue b/ui/src/components/ai-chat/component/inline-params/InlineFormItem.vue
index e686d12c9df..68b94f8647f 100644
--- a/ui/src/components/ai-chat/component/inline-params/InlineFormItem.vue
+++ b/ui/src/components/ai-chat/component/inline-params/InlineFormItem.vue
@@ -12,7 +12,7 @@
{{ switchLabel }}
@@ -88,7 +88,11 @@ const itemValue = computed({
const attrs = computed(() => {
const base = props.formfield.attrs || {}
- if (props.formfield.input_type === 'MultiSelect' || props.formfield.input_type === 'Knowledge') {
+ if (
+ props.formfield.input_type === 'MultiSelect' ||
+ props.formfield.input_type === 'Knowledge' ||
+ (props.formfield.input_type === 'TreeSelect' && base.multiple)
+ ) {
return {
...base,
'collapse-tags': true,