mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 15:19:38 +02:00
13 lines
344 B
Ruby
13 lines
344 B
Ruby
|
module Assistant::Broadcastable
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
private
|
||
|
def update_thinking(thought)
|
||
|
chat.broadcast_update target: "thinking-indicator", partial: "chats/thinking_indicator", locals: { chat: chat, message: thought }
|
||
|
end
|
||
|
|
||
|
def stop_thinking
|
||
|
chat.broadcast_remove target: "thinking-indicator"
|
||
|
end
|
||
|
end
|