From 5bc6a713271eab597e179d203736b15661b7a505 Mon Sep 17 00:00:00 2001 From: Charles T Date: Sun, 1 Oct 2023 04:51:38 +0800 Subject: [PATCH] Add (ai gen) --- app/Jobs/Tasks/GenerateShopeeAIArticleTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Tasks/GenerateShopeeAIArticleTask.php b/app/Jobs/Tasks/GenerateShopeeAIArticleTask.php index 5f358fe..e3587eb 100644 --- a/app/Jobs/Tasks/GenerateShopeeAIArticleTask.php +++ b/app/Jobs/Tasks/GenerateShopeeAIArticleTask.php @@ -149,7 +149,7 @@ private static function stripHtml(string $raw_html) try { $r_configuration = new ReadabilityConfiguration(); - $r_configuration->setWordThreshold(20); + $r_configuration->setCharThreshold(20); $readability = new Readability($r_configuration);