Skip to content

Commit

Permalink
Update system instruction for Reddit news summarization to include ti…
Browse files Browse the repository at this point in the history
…me frame
  • Loading branch information
dhanushreddy291 committed Dec 29, 2024
1 parent 162d695 commit 4840751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def generate_reddit_news_summary(contents, subreddit_name, start_time, end_time)
config=types.GenerateContentConfig(
response_mime_type="application/json",
response_schema=News,
system_instruction="You are professional news anchor.",
system_instruction="You are professional news anchor. You are summarizing the news from Reddit posts in the past 2 hours.",
),
)
return json.loads(response.text)
Expand Down

0 comments on commit 4840751

Please sign in to comment.