diff --git a/README.md b/README.md index 0ff0b3c..c28f64f 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Configures the new Slack Assistant features, providing a dedicated side panel UI * The `@assistant.thread_started` listener receives an event when users start new app thread. * The `@assistant.user_message` listener processes user messages in app threads or from the app **Chat** and **History** tab. -`llm_caller.py`, which handles OpenAI API integration and message formatting. It includes the `call_llm()` function that sends conversation threads to OpenAI's models. +`ai/llm_caller.py`, which handles OpenAI API integration and message formatting. It includes the `call_llm()` function that sends conversation threads to OpenAI's models. ## App Distribution / OAuth diff --git a/listeners/llm_caller.py b/ai/llm_caller.py similarity index 100% rename from listeners/llm_caller.py rename to ai/llm_caller.py diff --git a/listeners/assistant/assistant.py b/listeners/assistant/assistant.py index 320d41f..d91df8c 100644 --- a/listeners/assistant/assistant.py +++ b/listeners/assistant/assistant.py @@ -7,7 +7,7 @@ from slack_sdk.errors import SlackApiError from ..views.feedback_block import create_feedback_block -from ..llm_caller import call_llm +from ai.llm_caller import call_llm # Refer to https://tools.slack.dev/bolt-python/concepts/assistant/ for more details diff --git a/listeners/events/app_mentioned.py b/listeners/events/app_mentioned.py index ea34c38..e45b2e6 100644 --- a/listeners/events/app_mentioned.py +++ b/listeners/events/app_mentioned.py @@ -2,7 +2,7 @@ from slack_sdk import WebClient from slack_bolt import Say -from ..llm_caller import call_llm +from ai.llm_caller import call_llm from ..views.feedback_block import create_feedback_block """