Explorar el Código

#5406 AI Agents revamp: AI Providers/models

Aleksandr Trofimov hace 7 meses
padre
commit
bf58d6b4ac
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      studio/template/scripts/BxBaseStudioAgentsModels.php

+ 1 - 0
studio/template/scripts/BxBaseStudioAgentsModels.php

@@ -33,6 +33,7 @@ class BxBaseStudioAgentsModels extends BxDolStudioAgentsModels
             $aModel['title'] .= ' (Copy)';
             $aModel['duplicate'] = 1;
             $aModel['changed'] = time();
+            $aModel['active'] = 0;
             $iNewId = $this->_oDb->insertModel($aModel);
             if ($iNewId) {
                 $aRes = ['grid' => $this->getCode(false), 'blink' => $iNewId];