adjust tweet length

This commit is contained in:
2025-05-09 10:00:31 +10:00
parent 99403e7cfe
commit fb3adcdc4e
+1 -1
View File
@@ -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). "