فهرست منبع

#5406 AI Agents revamp: code refactoring

Aleksandr Trofimov 1 ماه پیش
والد
کامیت
b70ebc08c3
2فایلهای تغییر یافته به همراه1 افزوده شده و 6 حذف شده
  1. 0 5
      inc/classes/BxDolAi.php
  2. 1 1
      studio/template/scripts/BxBaseStudioAgentsAgents.php

+ 0 - 5
inc/classes/BxDolAi.php

@@ -95,11 +95,6 @@ class BxDolAi extends BxDolFactory implements iBxDolSingleton
         return BxDolAIModelFactory::getModelInstance($iId);
     }
 
-    public static function getDefaultModel()
-    {
-        return (int)getParam('sys_agents_model');
-    }
-
     public function getProfileId()
     {
         return $this->_iProfileId;

+ 1 - 1
studio/template/scripts/BxBaseStudioAgentsAgents.php

@@ -529,7 +529,7 @@ class BxBaseStudioAgentsAgents extends BxDolStudioAgentsAgents
                     'name' => 'model_id',
                     'caption' => _t('_sys_agents_field_model_id'),
                     'info' => _t('_sys_agents_field_model_id_info'),
-                    'value' => isset($aAgent['model_id']) ? $aAgent['model_id'] : BxDolAi::getDefaultModel(),
+                    'value' => isset($aAgent['model_id']) ? $aAgent['model_id'] : 0,
                     'values' => $this->_getModelSelectValues(),
                     'required' => '1',
                     'checker' => [