From 48407512c1c1354f3961793a1bba5817c6c45977 Mon Sep 17 00:00:00 2001 From: Dhanush Reddy <29dhanushreddy@gmail.com> Date: Sun, 29 Dec 2024 19:21:58 +0000 Subject: [PATCH] Update system instruction for Reddit news summarization to include time frame --- llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm.py b/llm.py index 32dd9d3..c9b7f39 100644 --- a/llm.py +++ b/llm.py @@ -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)