Explorar el Código

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

zhangxiao hace 2 años
padre
commit
e4a63fe886
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/dmx/IntelligentAgent/components/agentConfig.vue

+ 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;