Skip to content

Commit 2c5878a

Browse files
committed
chore: merge w base branch
2 parents b2e1834 + 68b56c2 commit 2c5878a

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Configures the new Slack Assistant features, providing a dedicated side panel UI
8989
* The `@assistant.thread_started` listener receives an event when users start new app thread.
9090
* The `@assistant.user_message` listener processes user messages in app threads or from the app **Chat** and **History** tab.
9191

92-
`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.
92+
`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.
9393

9494
## App Distribution / OAuth
9595

listeners/assistant/assistant.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from slack_sdk.errors import SlackApiError
88

99
from ..views.feedback_block import create_feedback_block
10-
from ..llm_caller import call_llm
10+
from ai.llm_caller import call_llm
1111

1212

1313
# Refer to https://tools.slack.dev/bolt-python/concepts/assistant/ for more details
@@ -67,9 +67,9 @@ def respond_in_assistant_thread(
6767
):
6868
try:
6969
channel_id = payload["channel"]
70-
team_id = payload["team"]
70+
team_id = context.team_id
7171
thread_ts = payload["thread_ts"]
72-
user_id = payload["user"]
72+
user_id = context.user_id
7373
user_message = payload["text"]
7474

7575
set_status(

listeners/events/app_mentioned.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from slack_sdk import WebClient
33
from slack_bolt import Say
44

5-
from ..llm_caller import call_llm
5+
from ai.llm_caller import call_llm
66
from ..views.feedback_block import create_feedback_block
77

88
"""

0 commit comments

Comments
 (0)