Update GenerateShopeeAIArticleTask.php
This commit is contained in:
@@ -45,6 +45,8 @@ public static function handle(ShopeeSellerScrape $shopee_seller_scrape)
|
|||||||
|
|
||||||
$excerpt = self::stripHtml($raw_html);
|
$excerpt = self::stripHtml($raw_html);
|
||||||
|
|
||||||
|
$excerpt = substr($excerpt, 0, 1500); // limit to 1500 characters due to OpenAI model limitations unless use 16k model, $$$$
|
||||||
|
|
||||||
$excerpt .= self::getProductPricingExcerpt($shopee_task->product_task->response->jsonld);
|
$excerpt .= self::getProductPricingExcerpt($shopee_task->product_task->response->jsonld);
|
||||||
|
|
||||||
$photos = ShopeeSellerScrapedImage::where('shopee_seller_scrape_id', $shopee_seller_scrape->id)->where('featured', false)->orderByRaw('RAND()')->take(3)->get()->pluck('image')->toArray();
|
$photos = ShopeeSellerScrapedImage::where('shopee_seller_scrape_id', $shopee_seller_scrape->id)->where('featured', false)->orderByRaw('RAND()')->take(3)->get()->pluck('image')->toArray();
|
||||||
|
|||||||
Reference in New Issue
Block a user