Skip to content

Commit

Permalink
Submit thread context in slack
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Dec 16, 2023
1 parent 7e3f2cb commit f1b3916
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/slack/app/bolt_listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ def respond_to_app_mention(
limit=1000,
).get("messages", [])
reply = replies_in_thread[-1]
#for reply in replies_in_thread:
c = reply["text"]+"\n\n"
content += c
for reply in replies_in_thread:
c = reply["text"]+"\n\n"
content += c
role = "assistant" if reply["user"] == context.bot_user_id else "user"
messages.append(
{
"role": role,
"content": (
format_openai_message_content(
reply["text"], TRANSLATE_MARKDOWN
content, TRANSLATE_MARKDOWN
)
),
}
Expand Down

0 comments on commit f1b3916

Please sign in to comment.