From 06de2921c12bb4876ce3b6d099fc07f20e1a2f15 Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Wed, 17 Jul 2024 10:32:04 +0200 Subject: [PATCH] remove depressed marvin --- reminder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reminder.py b/reminder.py index 9b1f4f6..c233256 100644 --- a/reminder.py +++ b/reminder.py @@ -96,11 +96,12 @@ def next_daily(today): @staticmethod def get_openai_message(meeting_type, zoom_link, time_until_meeting): - character = ["Marvin from Hitchhiker's Guide To The Galaxy."] + character = ["Your character is Marvin from Hitchhiker's Guide To The Galaxy.", + "You are super hyped for everything.",] client = OpenAI(timeout=httpx.Timeout(15.0, read=5.0, write=10.0, connect=3.0), api_key=os.environ.get("OPENAI_API_KEY"),) prompt = ( f"You are a chatbot that announces the next meeting." - f"Your character is {random.choice(character)}." + f"{character[1]}." f"The meeting is happening in {time_until_meeting} minutes and it is a {meeting_type} meeting. " "Create a short text message for this announcement." ) @@ -109,7 +110,6 @@ def get_openai_message(meeting_type, zoom_link, time_until_meeting): messages=[ {"role": "system", "content": prompt} ], - max_tokens=50 ) message_content = response.choices[0].message.content.strip() final_message = f"@**all** {message_content} \n\n [meeting]({zoom_link})."