stream_chat() (sync generator) and async_stream_chat() (async generator) send the chat request with stream: true and yield one ChatDeltaEvent per SSE frame.
Signature
chat().
ChatDeltaEvent
Collect the full text
Errors
- HTTP errors before the stream starts raise the usual typed exceptions (for example
ReyGridAuthError). - A frame that isn’t valid JSON raises
ReyGridStreamError. - Timeouts and connection failures raise
ReyGridNetworkError.