HOWTO: use a custom Streaming REST api with assistant-ui from scratch
- Wrap your Thread component within the
ChatRuntimeProvider
. - Update the endpoint and configure appropriate auth headers
For more info on the SSE protocol, checkout the event stream protocol docs.
This example aims to show how to integrate a custom streaming REST api endpoint with assistant-ui without using additional packages. If you like, you can use existing packages for dealing with SSE parsing and communication.