Skip to content

Commit

Permalink
free intelligence
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Nov 21, 2024
1 parent bd5887b commit d8e97ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cookbook/slackbot/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def engage_marvin_bot(model: str):

@flow(name="Handle Slack Message", retries=1)
async def handle_message(payload: SlackPayload):
marvin.settings.openai.chat.completions.model = "gpt-4o-2024-11-20"
print(f"Using {marvin.settings.openai.chat.completions.model=}")
assert (event := payload.event)
user_message = event.text
cleaned_message = re.sub(BOT_MENTION, "", user_message).strip() # type: ignore
Expand Down

0 comments on commit d8e97ab

Please sign in to comment.