From 2becd6dd001ce7214f17edfdba095a934fa96465 Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Mon, 16 Oct 2023 12:09:54 -0400 Subject: [PATCH 1/2] chore: bump to gpt4 to save max --- ai.py | 4 ++-- slack.py | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ai.py b/ai.py index dca441a..fd764a9 100644 --- a/ai.py +++ b/ai.py @@ -9,8 +9,8 @@ load_dotenv() -OPENAI_MODEL = "gpt-3.5-turbo" -# OPENAI_MODEL = "gpt-4" +# OPENAI_MODEL = "gpt-3.5-turbo" +OPENAI_MODEL = "gpt-4" OPENAI_TOKEN = os.environ.get("OPENAI_TOKEN") if not OPENAI_TOKEN: diff --git a/slack.py b/slack.py index e122aa4..6f8ae44 100644 --- a/slack.py +++ b/slack.py @@ -192,6 +192,13 @@ async def handle_app_mention_events(client, body, logger, say): ) raise e + +@app.event({ + "type": "member_joined_channel", +}) +async def handle_channel_join_events(client, body, logger, say): + + async def _handle_app_mention_events(client, body, logger, say): logger.info(body) print(body) From ba982f6dc7ef7a2357dd2c1cfe741ce973094b9b Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Mon, 16 Oct 2023 12:11:04 -0400 Subject: [PATCH 2/2] undo slack.py --- slack.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/slack.py b/slack.py index 6f8ae44..e122aa4 100644 --- a/slack.py +++ b/slack.py @@ -192,13 +192,6 @@ async def handle_app_mention_events(client, body, logger, say): ) raise e - -@app.event({ - "type": "member_joined_channel", -}) -async def handle_channel_join_events(client, body, logger, say): - - async def _handle_app_mention_events(client, body, logger, say): logger.info(body) print(body)