Update OpenAI.php

This commit is contained in:
charlesteh
2023-10-02 13:14:06 +08:00
committed by GitHub
parent 5727a3e5e2
commit ffad457a71

View File

@@ -10,7 +10,7 @@ class OpenAI
{ {
public static function writeProductArticle($excerpt, $photos) public static function writeProductArticle($excerpt, $photos)
{ {
//$excerpt = substr($excerpt, 0, 900); $excerpt = substr($excerpt, 0, 1500);
$system_prompt = ' $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 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