diff --git a/foodie_utils.py b/foodie_utils.py index c6d961c..9ce3c88 100644 --- a/foodie_utils.py +++ b/foodie_utils.py @@ -129,10 +129,11 @@ def generate_article_tweet(author, post, persona): prompt = ( 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"Distill the essence of the article '{title}' and include the raw URL '{url}' at the end. " 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." + f"Absolutely do not include hashtags, emojis, or phrases like '[Read more]' or 'Read more'. " + f"Skip any extra fluff or formatting around the URL—just append the raw URL after a space." ) response = openai.chat.completions.create(