edit prompt to remove [Read More]

my-fix-branch
Shane 7 months ago
parent 41dc142b60
commit a132bd9fb3
  1. 5
      foodie_utils.py

@ -129,10 +129,11 @@ def generate_article_tweet(author, post, persona):
prompt = ( prompt = (
f"Craft a sharp tweet (under 280 characters) for {author_handle} with the voice of '{persona}'. " 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"Make it bold, spark curiosity, and invite engagement with a human touch. "
f"Swap 'elevate' for dynamic terms like 'ignite' or 'unleash'. " 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( response = openai.chat.completions.create(

Loading…
Cancel
Save