update tweet post every 2 days
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user