yield data, which is sent downstream via the text/event-stream Content-Type.
You can send data in JSON format and decode it on the client side.
A minimal example:

Stream live model output from a Cerebrium endpoint over server-sent events by yielding results from a Python generator or iterator function.
yield data, which is sent downstream via the text/event-stream Content-Type.
You can send data in JSON format and decode it on the client side.
A minimal example:
