Update GenerateShopeeAIArticleTask.php

This commit is contained in:
charlesteh
2023-10-02 13:24:34 +08:00
committed by GitHub
parent 45bff5e109
commit b143c91402

View File

@@ -45,7 +45,7 @@ public static function handle(ShopeeSellerScrape $shopee_seller_scrape)
$excerpt = self::stripHtml($raw_html);
$excerpt = substr($excerpt, 0, 900); // limit to 900 characters due to OpenAI model limitations unless use 16k model, $$$$
$excerpt = substr($excerpt, 0, 1500); // limit to 1500 (+1500 output token, total 3k token) characters due to OpenAI model limitations unless use 16k model, $$$$
$excerpt .= self::getProductPricingExcerpt($shopee_task->product_task->response->jsonld);