From d8e97aba1fffac99de946253943062891a0a066c Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Wed, 20 Nov 2024 23:46:24 -0600 Subject: [PATCH] free intelligence --- cookbook/slackbot/start.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbook/slackbot/start.py b/cookbook/slackbot/start.py index 56147d569..24ba62543 100644 --- a/cookbook/slackbot/start.py +++ b/cookbook/slackbot/start.py @@ -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