|
...
|
...
|
@@ -8,6 +8,7 @@ use App\Helper\Translate; |
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Ai\AiCommand;
|
|
|
|
use App\Models\Project\DeployOptimize;
|
|
|
|
use App\Models\WebSetting\WebLanguage;
|
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
|
|
|
|
class AiCommandLogic extends BaseLogic
|
|
...
|
...
|
@@ -58,8 +59,8 @@ class AiCommandLogic extends BaseLogic |
|
|
|
if(trim($ai_command->ai) == '{core keywords 8}'){
|
|
|
|
$ai_send = false;
|
|
|
|
}else{
|
|
|
|
$lang = $this->getLang($this->param['keywords']);
|
|
|
|
$prompt .= '.Please answer in ' . ($lang ?: 'English');
|
|
|
|
$lang = WebLanguage::getLangById($this->project['main_lang_id']??1)['english'] ?? 'English';
|
|
|
|
$prompt .= '.Please answer in ' . $lang;
|
|
|
|
$ai_send = true;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|