From 66e653b5796e94332ad73d70ddbbb2e1ce0b69ae Mon Sep 17 00:00:00 2001 From: Shane Date: Wed, 30 Apr 2025 20:24:05 +1000 Subject: [PATCH] update tweet prompt --- foodie_utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/foodie_utils.py b/foodie_utils.py index 5c399d5..12b1d9f 100644 --- a/foodie_utils.py +++ b/foodie_utils.py @@ -128,11 +128,11 @@ def generate_article_tweet(author, post, persona): author_handle = f"@{author['username']}" prompt = ( - f"Generate a concise tweet (under 280 characters) for {author_handle} using the persona '{persona}'. " - f"Summarize the article '{title}' and include the link '{url}'. " - f"Highlight the article's appeal, make it engaging, and encourage interaction. " - f"Avoid using the word 'elevate'—use more humanized language like 'level up' or 'bring to life'. " - f"Do not include hashtags or emojis." + f"Craft a sharp tweet (under 280 characters) for {author_handle} with the voice of '{persona}'. " + f"Distill the essence of the article '{title}' and link to '{url}'. " + f"Make it bold, spark curiosity, and invite engagement with a human touch. " + f"Swap 'elevate' for dynamic terms like 'ignite' or 'unleash'. " + f"Skip hashtags, emojis, or fluff." ) response = openai.chat.completions.create(