diff --git a/privet/ailabs/controller/scriptexecute.php b/privet/ailabs/controller/scriptexecute.php index 5e56b52..edb9da3 100644 --- a/privet/ailabs/controller/scriptexecute.php +++ b/privet/ailabs/controller/scriptexecute.php @@ -64,9 +64,7 @@ class scriptexecute extends GenericController // Make sure that exe is enabled in /etc/php/8.2/fpm/pool.d/phpbb_pool.conf file // See line php_admin_value[disable_functions] = unset($output); - // Uncomment this line if you are planning to use this controller. - // If was commented out to pass phpBB extension certification process. - // exec($execute, $output, $result_code); + // Code removed, see 1.0.5 } catch (\Exception $e) { $result->response = '{ "error" : "' . $e . '" }'; } diff --git a/privet/ailabs/includes/AIController.php b/privet/ailabs/includes/AIController.php index 105cf99..ec93e8d 100644 --- a/privet/ailabs/includes/AIController.php +++ b/privet/ailabs/includes/AIController.php @@ -80,7 +80,8 @@ class AIController $streamedResponse = new StreamedResponse(); $streamedResponse->headers->set('X-Accel-Buffering', 'no'); $streamedResponse->setCallback(function () { - echo 'Processing'; + // Uncomment to debug callback response + // echo 'Processing'; flush(); }); $streamedResponse->send();