Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/ai_bot/chat_streamer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def create_reply(message)
ChatSDK::Message.create(
raw: message,
channel_id: channel.id,
thread_id: thread_id,
guardian: guardian,
force_thread: force_thread,
in_reply_to_id: in_reply_to_id,
Expand All @@ -78,7 +79,7 @@ def create_reply(message)
def done
@queue << :done
@worker_thread.join
ChatSDK::Message.stop_stream(message_id: @reply.id, guardian: @guardian)
ChatSDK::Message.stop_stream(message_id: @reply.id, guardian: @guardian) if @reply
@reply
end

Expand Down