Skip to content

Commit

Permalink
openai: fix function call
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalEgn committed Jul 15, 2024
1 parent 61f6923 commit 13269f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def next_daily(today):

return next_daily.strftime("**%Y-%m-%d** at **%H:%M**")

@staticmethod
def get_openai_message(meeting_type, zoom_link, time_until_meeting):
character = ["Marvin from Hitchhiker's Guide To The Galaxy."]
client = OpenAI(timeout=httpx.Timeout(15.0, read=5.0, write=10.0, connect=3.0), api_key=os.environ.get("OPENAI_API_KEY"),)
Expand Down Expand Up @@ -176,7 +177,7 @@ def send_notification(self, meeting, today):

if now_minus_5 == today.time():
try:
Reminder.get_openai_message(meeting, zoom_link, 5)
content = Reminder.get_openai_message(meeting, zoom_link, 5)
except Exception:
content = f"@**all** [meeting]({zoom_link}) in 5 minutes."

Expand Down

0 comments on commit 13269f3

Please sign in to comment.