update tweet post every 2 days

This commit is contained in:
2025-04-30 08:54:20 +10:00
parent 15186846be
commit a4df2954d4
3 changed files with 26 additions and 73 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ from datetime import datetime, timedelta
import logging
import random
import openai
from foodie_utils import post_tweet, AUTHORS
from foodie_utils import post_tweet, AUTHORS, SUMMARY_MODEL
# Setup logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
@@ -46,7 +46,7 @@ def generate_intro_tweet(author):
try:
response = openai.ChatCompletion.create(
model="gpt-4o",
model=SUMMARY_MODEL,
messages=[
{"role": "system", "content": "You are a social media expert crafting engaging tweets."},
{"role": "user", "content": prompt}