Skip to content

Commit

Permalink
Merge pull request #923 from PrefectHQ/fix-maze
Browse files Browse the repository at this point in the history
fix maze
  • Loading branch information
zzstoatzz authored May 15, 2024
2 parents 884d961 + 8512feb commit fbfa2e6
Show file tree
Hide file tree
Showing 13 changed files with 247 additions and 153 deletions.
6 changes: 2 additions & 4 deletions cookbook/flows/github_digest/repo_activity.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import inspect
from datetime import date, datetime, timedelta
from datetime import UTC, date, datetime, timedelta

import marvin
from marvin.utilities.jinja import BaseTemplate, JinjaEnvironment
Expand Down Expand Up @@ -145,7 +145,7 @@ async def daily_github_digest(
if lookback_days is None:
lookback_days = 1 if date.today().weekday() != 0 else 3

since = datetime.utcnow() - timedelta(days=lookback_days)
since = datetime.now(UTC) - timedelta(days=lookback_days)

data_future = await get_repo_activity_data.submit(
owner=owner,
Expand All @@ -164,8 +164,6 @@ async def daily_github_digest(
contributors_activity=await data_future.result(),
)

marvin.settings.openai.chat.completions.model = "gpt-4o"

epic_story = write_a_tasteful_epic(markdown_digest)

image_url = draw_a_movie_poster(epic_story).data[0].url
Expand Down
Loading

0 comments on commit fbfa2e6

Please sign in to comment.