discourse/plugins/chat/spec/lib
Joffrey JAFFEUX 41790f7739
DEV: allows stop/resume streaming on a message (#25774)
```ruby
ChatSDK::Message.start_stream(message_id: 1, guardian: guardian)
ChatSDK::Message.stream(raw: "foo", message_id: 1, guardian: guardian)
ChatSDK::Message.stream(raw: "bar", message_id: 1, guardian: guardian)
ChatSDK::Message.stop_stream(message_id: 1, guardian: guardian)
```

Generally speaking only admins or owners of the message can interact with a message.  Also note, Streaming to an existing message with a different user won't change the initial user of the message.
2024-02-26 14:16:29 +01:00
..
chat DEV: allows stop/resume streaming on a message (#25774) 2024-02-26 14:16:29 +01:00
chat_sdk DEV: allows stop/resume streaming on a message (#25774) 2024-02-26 14:16:29 +01:00
service_runner_spec.rb DEV: Allow chat services to have optional models 2023-07-20 17:27:44 +02:00