update tweet prompt
This commit is contained in:
+5
-5
@@ -128,11 +128,11 @@ def generate_article_tweet(author, post, persona):
|
|||||||
author_handle = f"@{author['username']}"
|
author_handle = f"@{author['username']}"
|
||||||
|
|
||||||
prompt = (
|
prompt = (
|
||||||
f"Generate a concise tweet (under 280 characters) for {author_handle} using the persona '{persona}'. "
|
f"Craft a sharp tweet (under 280 characters) for {author_handle} with the voice of '{persona}'. "
|
||||||
f"Summarize the article '{title}' and include the link '{url}'. "
|
f"Distill the essence of the article '{title}' and link to '{url}'. "
|
||||||
f"Highlight the article's appeal, make it engaging, and encourage interaction. "
|
f"Make it bold, spark curiosity, and invite engagement with a human touch. "
|
||||||
f"Avoid using the word 'elevate'—use more humanized language like 'level up' or 'bring to life'. "
|
f"Swap 'elevate' for dynamic terms like 'ignite' or 'unleash'. "
|
||||||
f"Do not include hashtags or emojis."
|
f"Skip hashtags, emojis, or fluff."
|
||||||
)
|
)
|
||||||
|
|
||||||
response = openai.chat.completions.create(
|
response = openai.chat.completions.create(
|
||||||
|
|||||||
Reference in New Issue
Block a user