Update OpenAI.php

This commit is contained in:
charlesteh
2023-10-02 13:14:42 +08:00
committed by GitHub
parent ffad457a71
commit 9eb311619e

View File

@@ -10,7 +10,7 @@ class OpenAI
{
public static function writeProductArticle($excerpt, $photos)
{
$excerpt = substr($excerpt, 0, 1500);
//$excerpt = substr($excerpt, 0, 1500);
$system_prompt = '
You are tasked with writing a comprehensive product introduction & review article using the provided excerpt. Write as if you are reviewing the product by a third party, but no pronouns.The emphasis should be on the performance, features, and notable aspects of the product. The review must not delve into marketplace-related information. Return the output in the following json format:\n\n