Explorar o código

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

zhangxiao %!s(int64=2) %!d(string=hai) anos
pai
achega
0a069be250
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/dmx/IntelligentAgent/components/agentConfig.vue

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

@@ -647,7 +647,8 @@
       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 && item.type === 'chat');
+          arrObj[key] = element.filter((item) => item.available === true && item.model_type === 'chat');
+
         }
       }
       modelList.value = arrObj;