You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/openai_devel/openai_devel.module
+20-19Lines changed: 20 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -248,8 +248,10 @@ function openai_devel_generate_content($options) {
248
248
for ($i = 0; $i < $num_nodes; $i++) {
249
249
try {
250
250
// Include title length in the prompt for OpenAI.
251
-
$system_message = $system . " Generate unique content for type '$type'. The title should have approximately $title_length words.";
252
-
$unique_prompt = "Generate unique and relevant content for a '{$type}' node. The title should be $title_length words. Avoid using the word 'title' in the title. Ensure the content is engaging and contains several paragraphs. Incorporate specific details or examples to make it stand out. Make this one distinct from any others by focusing on a specific perspective, historical detail, or novel idea.";
251
+
$system_message = $system . " Generate unique content for type '$type'. The title should have approximately $title_length words and should not include the word 'title'.";
252
+
$unique_prompt = "Generate unique and relevant content for a '{$type}' node. The title should be $title_length words and must not include the word 'title'.
253
+
Ensure the content is engaging and contains several paragraphs. Incorporate specific details or examples to make it stand out.
254
+
Make this one distinct from any others by focusing on a specific perspective, historical detail, or novel idea.";
253
255
254
256
$response = $api->chat(
255
257
$model,
@@ -263,6 +265,7 @@ function openai_devel_generate_content($options) {
0 commit comments