From fb3adcdc4e47f003d0721e597c513c1a009ad8e9 Mon Sep 17 00:00:00 2001 From: Shane Date: Fri, 9 May 2025 10:00:31 +1000 Subject: [PATCH] adjust tweet length --- foodie_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foodie_utils.py b/foodie_utils.py index e74793e..ddb59b5 100644 --- a/foodie_utils.py +++ b/foodie_utils.py @@ -115,7 +115,7 @@ def generate_article_tweet(author, post, persona, summary=""): author_handle = f"@{author['username']}" prompt = ( - f"Craft a sharp tweet (under 280 characters) for {author_handle} with the voice of '{persona}'. " + f"Craft a sharp tweet (under 230 characters) for {author_handle} with the voice of '{persona}'. " f"Distill the essence of the article '{title}' and its summary into a concise, engaging message. " f"Summary: {summary}\n" f"Include one specific detail from the summary (e.g., a unique dish, location, or trend). "