Procházet zdrojové kódy

过滤新增编辑智能体模型设置选择列表只展示模型类型等于对话的

zhangxiao před 2 roky
rodič
revize
e4a63fe886

+ 1 - 1
src/views/dmx/IntelligentAgent/components/agentConfig.vue

@@ -647,7 +647,7 @@
       for (const key in data.data) {
         if (Object.hasOwnProperty.call(data.data, key)) {
           const element = data.data[key];
-          arrObj[key] = element.filter((item) => item.available === true);
+            arrObj[key] = element.filter((item) => item.available === true && item.type === 'chat');
         }
       }
       modelList.value = arrObj;