|
|
|
@ -138,7 +138,7 @@ def generate_article_tweet(author, post, persona): |
|
|
|
response = openai.chat.completions.create( |
|
|
|
response = openai.chat.completions.create( |
|
|
|
model=SUMMARY_MODEL, |
|
|
|
model=SUMMARY_MODEL, |
|
|
|
messages=[ |
|
|
|
messages=[ |
|
|
|
{"role": "system", "content": "You are a social media expert crafting engaging tweets."}, |
|
|
|
{"role": "system", "content": "You are a social media viral expert crafting engaging tweets."}, |
|
|
|
{"role": "user", "content": prompt} |
|
|
|
{"role": "user", "content": prompt} |
|
|
|
], |
|
|
|
], |
|
|
|
max_tokens=100, |
|
|
|
max_tokens=100, |
|
|
|
|